Skip to content

Commit

Permalink
[fixed] remove additional es2015 from refCount
Browse files Browse the repository at this point in the history
This should make the lib work with uglify again

closes #376
  • Loading branch information
claydiffrient committed Apr 13, 2017
1 parent 4bae32b commit 048ef2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/helpers/refCount.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
var modals = [];

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

0 comments on commit 048ef2d

Please sign in to comment.