Skip to content

Commit 6ad79d7

Browse files
fix for issue #45 built
1 parent 0c402e2 commit 6ad79d7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

dist/angular-off-click.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ angular.module('offClick').directive('offClickFilter', ["OffClickFilterCache", "
127127
});
128128

129129
scope.$on('$destroy', function () {
130-
element = null;
131130
filters.forEach(function (filter) {
132131
if (OffClickFilterCache[filter].length > 1) {
133132
OffClickFilterCache[filter].splice(OffClickFilterCache[filter].indexOf(element[0]), 1);
@@ -136,11 +135,13 @@ angular.module('offClick').directive('offClickFilter', ["OffClickFilterCache", "
136135
delete OffClickFilterCache[filter];
137136
}
138137
});
138+
element = null;
139139
});
140140
};
141141
}
142142
};
143143
}]);
144+
144145
angular.module('offClick').factory('OffClickFilterCache', function () {
145146
var filterCache = {};
146147
return filterCache;

dist/angular-off-click.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)