From 385f2c2031ff411d20915342a604b6236e9aab86 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Fri, 11 Nov 2011 23:42:12 -0800 Subject: [PATCH] extension loaded => running --- src/atom/extension.coffee | 8 ++++---- src/stdlib/key-binder.coffee | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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) ->