Skip to content

Commit 048ef2d

Browse files
committed
[fixed] remove additional es2015 from refCount
This should make the lib work with uglify again closes #376
1 parent 4bae32b commit 048ef2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/helpers/refCount.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
var modals = [];
22

33
module.exports = {
4-
add (element) {
4+
add: function (element) {
55
if (modals.indexOf(element) === -1) {
66
modals.push(element);
77
}
88
},
9-
remove (element) {
9+
remove: function (element) {
1010
const index = modals.indexOf(element);
1111
if (index === -1) {
1212
return;
1313
}
1414
modals.splice(index, 1);
1515
},
16-
count () {
16+
count: function () {
1717
return modals.length;
1818
}
1919
};

0 commit comments

Comments
 (0)