mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Coffeescript declares variable before assigning it
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
global = global # the "global.global" might be deleted later
|
||||
savedGlobal = global # the "global.global" might be deleted later
|
||||
|
||||
module.exports =
|
||||
class CallbacksRegistry
|
||||
@@ -18,10 +18,10 @@ class CallbacksRegistry
|
||||
@callbacks[id] ? ->
|
||||
|
||||
call: (id, args...) ->
|
||||
@get(id).call global, args...
|
||||
@get(id).call savedGlobal, args...
|
||||
|
||||
apply: (id, args...) ->
|
||||
@get(id).apply global, args...
|
||||
@get(id).apply savedGlobal, args...
|
||||
|
||||
remove: (id) ->
|
||||
delete @callbacks[id]
|
||||
|
||||
Reference in New Issue
Block a user