(js) Improve sg-ripple-click directive

pull/225/head
Francis Lachapelle 2016-10-20 21:15:50 -04:00
parent f326ca5ae5
commit b301c5ec4c
1 changed files with 5 additions and 1 deletions

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;