Skip to content

Commit 64c7dd9

Browse files
author
Stan Bondi
committed
Fixed undefined error when destroying scope PR#2
1 parent bfaede8 commit 64c7dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-zeroclipboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ angular.module('zeroclipboard', [])
5656
element.attr('data-clipboard-text', v);
5757
});
5858

59-
client.on('complete', function _completeHnd(e) {
59+
client.on('complete', _completeHnd = function(e) {
6060
scope.$apply(function() {
6161
scope.onCopied({$event: e});
6262
});

0 commit comments

Comments
 (0)