diff options
Diffstat (limited to 'js/controllers/objects-controller.js')
-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 : { |