Skip to content

Commit 6b827f6

Browse files
author
Dawid Szlachta
committed
fixed "_completeHnd is undefined" issue
1 parent 76744f4 commit 6b827f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/angular-zeroclipboard.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ angular.module('zeroclipboard', [])
4141
text: '@zeroclipText'
4242
},
4343
link: function(scope, element, attrs) {
44+
45+
var btn = element[0];
46+
var _completeHnd;
47+
4448
// config
4549
ZeroClipboard.config(zeroclipConfig);
46-
var btn = element[0];
4750

4851
if (angular.isFunction(ZeroClipboard)) {
4952
scope.client = new ZeroClipboard(btn);

0 commit comments

Comments
 (0)