(js) Improve sg-ripple-click directive

This commit is contained in:
Francis Lachapelle
2016-10-20 21:15:50 -04:00
parent f326ca5ae5
commit b301c5ec4c

View File

@@ -68,7 +68,11 @@
// Register listener
element.on('click', listener);
scope.$on('$destroy', function() {
element.off('click', listener);
});
function listener(event) {
var coordinates;