diff --git a/lib/helpers/refCount.js b/lib/helpers/refCount.js index 76a84c97..ab03e838 100644 --- a/lib/helpers/refCount.js +++ b/lib/helpers/refCount.js @@ -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; } };