diff options
author | Eric Guzman | 2012-06-01 12:53:24 -0700 |
---|---|---|
committer | Eric Guzman | 2012-06-01 12:53:24 -0700 |
commit | 0f59ef2a4b78fbcee402255857e8355a67fa7e66 (patch) | |
tree | d0369ea70d15c9ba4ff03f0945969206882091ca /js/controllers | |
parent | 50ea77b261e1b3676aea2b1ed582d5e6c97a0997 (diff) | |
download | ninja-0f59ef2a4b78fbcee402255857e8355a67fa7e66.tar.gz |
Bindings Panel - Update binding panel components
Diffstat (limited to 'js/controllers')
-rw-r--r-- | js/controllers/objects-controller.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/controllers/objects-controller.js b/js/controllers/objects-controller.js index cd0139a0..a02c3045 100644 --- a/js/controllers/objects-controller.js +++ b/js/controllers/objects-controller.js | |||
@@ -109,6 +109,26 @@ var objectsController = exports.ObjectsController = Montage.create(Component, { | |||
109 | } | 109 | } |
110 | }, | 110 | }, |
111 | 111 | ||
112 | /* ---- Bindable Properties ---- */ | ||
113 | |||
114 | getEnumerableProperties : { | ||
115 | value: function(object, excludeUnderscoreProperties) { | ||
116 | var properties = []; | ||
117 | |||
118 | for(var key in object) { | ||
119 | properties.push(key); | ||
120 | } | ||
121 | |||
122 | if(excludeUnderscoreProperties) { | ||
123 | properties = properties.filter(function(property) { | ||
124 | return property[0] !== '_'; | ||
125 | }, this); | ||
126 | } | ||
127 | |||
128 | return properties.sort(); | ||
129 | } | ||
130 | }, | ||
131 | |||
112 | /* ---- Bindable controller properties ---- */ | 132 | /* ---- Bindable controller properties ---- */ |
113 | 133 | ||
114 | currentObjectBindings : { | 134 | currentObjectBindings : { |