We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bae32b commit 048ef2dCopy full SHA for 048ef2d
lib/helpers/refCount.js
@@ -1,19 +1,19 @@
1
var modals = [];
2
3
module.exports = {
4
- add (element) {
+ add: function (element) {
5
if (modals.indexOf(element) === -1) {
6
modals.push(element);
7
}
8
},
9
- remove (element) {
+ remove: function (element) {
10
const index = modals.indexOf(element);
11
if (index === -1) {
12
return;
13
14
modals.splice(index, 1);
15
16
- count () {
+ count: function () {
17
return modals.length;
18
19
};
0 commit comments