From 048ef2d65dc97837abc5240b95fb08ba8bb2f303 Mon Sep 17 00:00:00 2001 From: Clay Diffrient Date: Thu, 13 Apr 2017 08:40:13 -0600 Subject: [PATCH] [fixed] remove additional es2015 from refCount This should make the lib work with uglify again closes #376 --- lib/helpers/refCount.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } };