Skip to content

Commit d852cbc

Browse files
committed
optimize code
1 parent 6ad1f03 commit d852cbc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/angular-zeroclipboard.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@ provider('uiZeroclipConfig', function() {
2626
this.setOptions = function(options) {
2727
angular.extend(_options, options);
2828
};
29-
this.$get = [
30-
function() {
31-
return {
32-
zeroclipConfig: _zeroclipConfig,
33-
options: _options
34-
}
29+
this.$get = function() {
30+
return {
31+
zeroclipConfig: _zeroclipConfig,
32+
options: _options
3533
}
36-
];
34+
};
3735
}).
3836
directive('uiZeroclip', ['$document', '$window', 'uiZeroclipConfig',
3937
function($document, $window, uiZeroclipConfig) {

0 commit comments

Comments
 (0)