diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-11 15:30:31 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-11 15:30:55 +0100 |
commit | 5492e60510379add1523454f322def81167be8be (patch) | |
tree | 8fff208ff6492758cff1b17aae7ec02c797cd322 /coffee/lib | |
parent | e10d99e13da782e4c4bed03974bb10959ed333b4 (diff) |
new style and style cleanup for the news app
Diffstat (limited to 'coffee/lib')
-rw-r--r-- | coffee/lib/owncloud.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coffee/lib/owncloud.coffee b/coffee/lib/owncloud.coffee index 537499135..aaed235a3 100644 --- a/coffee/lib/owncloud.coffee +++ b/coffee/lib/owncloud.coffee @@ -34,11 +34,11 @@ angular.module('OC', []).config ['$httpProvider', ($httpProvider) -> return $.param(data) ] -angular.module('OC').init ['$rootScope', 'Router', ($rootScope, Router) -> +angular.module('OC').run ['$rootScope', 'Router', ($rootScope, Router) -> init = -> $rootScope.$broadcast('routesLoaded') # this registers a callback that is executed once the routes have # finished loading. Before this you cant really do request - OC.Router.registerLoadedCallback(init) + Router.registerLoadedCallback(init) ]
\ No newline at end of file |