Skip to content

Commit 22c1462

Browse files
committed
fix(deps): use named parameters
1 parent 1acb7fd commit 22c1462

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

socket.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ angular.module('btford.socket-io', []).
1515
ioSocket;
1616

1717
// expose to provider
18-
this.$get = function ($rootScope, $timeout) {
18+
this.$get = ['$rootScope', '$timeout', function ($rootScope, $timeout) {
1919

2020
var asyncAngularify = function (socket, callback) {
2121
return callback ? function () {
@@ -94,5 +94,5 @@ angular.module('btford.socket-io', []).
9494

9595
return wrappedSocket;
9696
};
97-
};
97+
}];
9898
});

0 commit comments

Comments
 (0)