Remove ;
parent
0d4bfff728
commit
e3bf5c1e02
|
@ -102,7 +102,7 @@ Loader = () ->
|
||||||
timeout = 0
|
timeout = 0
|
||||||
|
|
||||||
setTimeout ( ->
|
setTimeout ( ->
|
||||||
$rootscope.$broadcast("loader:end");
|
$rootscope.$broadcast("loader:end")
|
||||||
), timeout
|
), timeout
|
||||||
|
|
||||||
start: () ->
|
start: () ->
|
||||||
|
@ -118,13 +118,13 @@ Loader = () ->
|
||||||
), 100
|
), 100
|
||||||
|
|
||||||
startLoadTime = new Date().getTime()
|
startLoadTime = new Date().getTime()
|
||||||
$rootscope.$broadcast("loader:start");
|
$rootscope.$broadcast("loader:start")
|
||||||
|
|
||||||
onStart: (fn) ->
|
onStart: (fn) ->
|
||||||
$rootscope.$on("loader:start", fn);
|
$rootscope.$on("loader:start", fn)
|
||||||
|
|
||||||
onEnd: (fn) ->
|
onEnd: (fn) ->
|
||||||
$rootscope.$on("loader:end", fn);
|
$rootscope.$on("loader:end", fn)
|
||||||
|
|
||||||
logRequest: () ->
|
logRequest: () ->
|
||||||
log.request.count++
|
log.request.count++
|
||||||
|
|
Loading…
Reference in New Issue