diff --git a/src/atom/extension.coffee b/src/atom/extension.coffee index c0396db71..66b2fad58 100644 --- a/src/atom/extension.coffee +++ b/src/atom/extension.coffee @@ -1,18 +1,18 @@ # Extension subclasses must call super in all overridden methods. module.exports = class Extension - loaded: false + running: false constructor: -> - console.log "#{@constructor.name}: Loaded" + console.log "#{@constructor.name}: Running" # `startup` should be called by you in Extension subclasses when they need # to appear on the screen, attach themselves to a Resource, or otherwise become active. startup: -> - @loaded = true + @running = true # `shutdown` shuold be called by you in Extension subclasses when they need # to be remove from the screen, unattach themselves from a Resource, or otherwise become # inactive. shutdown: -> - @loaded = false \ No newline at end of file + @running = false \ No newline at end of file diff --git a/src/stdlib/key-binder.coffee b/src/stdlib/key-binder.coffee index 711c7fe84..073043125 100644 --- a/src/stdlib/key-binder.coffee +++ b/src/stdlib/key-binder.coffee @@ -59,7 +59,7 @@ class KeyBinder true responders: -> - extensions = _.select (_.values atom.extensions), (extension) -> extension.loaded + extensions = _.select (_.values atom.extensions), (extension) -> extension.running? _.flatten [ extensions, window.resource, window, atom.app ] triggerBinding: (scope, method) ->