Skip to content

Commit 06569d6

Browse files
committed
make jshint happy
1 parent f27ba50 commit 06569d6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/angular-zeroclipboard.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ angular.module('zeroclipboard', [])
2121
this.$get = function() {
2222
return {
2323
zeroclipConfig: _zeroclipConfig
24-
}
24+
};
2525
};
2626
})
2727

2828
.directive('uiZeroclip', ['$document', '$window', 'uiZeroclipConfig',
2929
function($document, $window, uiZeroclipConfig) {
3030

3131
var zeroclipConfig = uiZeroclipConfig.zeroclipConfig || {};
32-
var ZeroClipboard = $window.ZeroClipboard
32+
var ZeroClipboard = $window.ZeroClipboard;
3333

3434
return {
3535
scope: {
@@ -48,7 +48,9 @@ angular.module('zeroclipboard', [])
4848
}
4949

5050
scope.$watch('value', function(v) {
51-
if (v == undefined) { return; }
51+
if (v === undefined) {
52+
return;
53+
}
5254
element.attr('data-clipboard-text', v);
5355
});
5456

@@ -63,9 +65,9 @@ angular.module('zeroclipboard', [])
6365
});
6466

6567
scope.$on('$destroy', function() {
66-
client.off('complete', _completeHnd)
68+
client.off('complete', _completeHnd);
6769
});
6870
}
69-
}
71+
};
7072
}
7173
]);

0 commit comments

Comments
 (0)