From 266a8c588a2a17dd52803a9ba8d4ca72fdd98c55 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Thu, 19 Dec 2013 13:55:44 -0800 Subject: [PATCH] proper factoring. --- src/declaration/properties.js | 1 - src/declaration/prototype.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/declaration/properties.js b/src/declaration/properties.js index ac5f50c..18a5c16 100644 --- a/src/declaration/properties.js +++ b/src/declaration/properties.js @@ -20,7 +20,6 @@ observe[property] = observe[property] || n; } } - this.explodeObservers(prototype); }, explodeObservers: function(prototype) { // called before prototype.observe is chained to inherited object diff --git a/src/declaration/prototype.js b/src/declaration/prototype.js index b4a5cb6..07e089f 100644 --- a/src/declaration/prototype.js +++ b/src/declaration/prototype.js @@ -38,6 +38,8 @@ this.publishProperties(prototype, base); // infer observers for `observe` list based on method names this.inferObservers(prototype); + // desugar compound observer syntax, e.g. 'a b c' + this.explodeObservers(prototype); // chain various meta-data objects to inherited versions this.inheritMetaData(prototype, base); // chain custom api to inherited