diff options
author | Armen Kesablyan | 2012-06-01 13:12:31 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-01 13:12:31 -0700 |
commit | 77677e5ffb08a5dec4bf0be279130d7b1a99d03f (patch) | |
tree | d0369ea70d15c9ba4ff03f0945969206882091ca /js/controllers | |
parent | 50ea77b261e1b3676aea2b1ed582d5e6c97a0997 (diff) | |
parent | 0f59ef2a4b78fbcee402255857e8355a67fa7e66 (diff) | |
download | ninja-77677e5ffb08a5dec4bf0be279130d7b1a99d03f.tar.gz |
Merge pull request #5 from ericguzman/binding
Binding Panel components update
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 : { |