Skip to content

Commit 0c402e2

Browse files
Fix #45
1 parent c5767e4 commit 0c402e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/directives/offClickFilter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ angular.module('offClick')
1313
});
1414

1515
scope.$on('$destroy',() => {
16-
element = null;
1716
filters.forEach((filter) => {
1817
if(OffClickFilterCache[filter].length > 1) {
1918
OffClickFilterCache[filter].splice(OffClickFilterCache[filter].indexOf(element[0]), 1);
@@ -23,8 +22,9 @@ angular.module('offClick')
2322
delete OffClickFilterCache[filter];
2423
}
2524
});
25+
element = null;
2626
});
2727
};
2828
}
2929
};
30-
});
30+
});

0 commit comments

Comments
 (0)