Skip to content

Commit

Permalink
[fixed] remove es2015 from v1 branch
Browse files Browse the repository at this point in the history
closes #375
  • Loading branch information
claydiffrient committed Apr 13, 2017
1 parent c8fbae4 commit 1db0ee1
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions lib/helpers/refCount.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
const modals = [];
var modals = [];

export function add (element) {
if (modals.indexOf(element) === -1) {
modals.push(element);
module.exports = {
add (element) {
if (modals.indexOf(element) === -1) {
modals.push(element);
}
},
remove (element) {
const index = modals.indexOf(element);
if (index === -1) {
return;
}
modals.splice(index, 1);
},
count () {
return modals.length;
}
}

export function remove (element) {
const index = modals.indexOf(element);
if (index === -1) {
return;
}
modals.splice(index, 1);
}

export function count () {
return modals.length;
}
};

0 comments on commit 1db0ee1

Please sign in to comment.