Coffeescript declares variable before assigning it
This commit is contained in:
parent
8d09f13bad
commit
2d5c0ac9ee
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
global = global # the "global.global" might be deleted later
|
savedGlobal = global # the "global.global" might be deleted later
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
class CallbacksRegistry
|
class CallbacksRegistry
|
||||||
|
@ -18,10 +18,10 @@ class CallbacksRegistry
|
||||||
@callbacks[id] ? ->
|
@callbacks[id] ? ->
|
||||||
|
|
||||||
call: (id, args...) ->
|
call: (id, args...) ->
|
||||||
@get(id).call global, args...
|
@get(id).call savedGlobal, args...
|
||||||
|
|
||||||
apply: (id, args...) ->
|
apply: (id, args...) ->
|
||||||
@get(id).apply global, args...
|
@get(id).apply savedGlobal, args...
|
||||||
|
|
||||||
remove: (id) ->
|
remove: (id) ->
|
||||||
delete @callbacks[id]
|
delete @callbacks[id]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue