aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEric Guzman2012-06-12 12:58:50 -0700
committerEric Guzman2012-06-12 12:58:50 -0700
commit3ceb1282fa317023706e001bb4ec5ac61e40590f (patch)
tree6077f184df2e3a28dcbb21af936cfe6744bff21b /js
parent1f855ae600c9f796bb8c6abe01fd7f9ffd15a1ac (diff)
downloadninja-3ceb1282fa317023706e001bb4ec5ac61e40590f.tar.gz
Components - Add object instance to model's objects array
Diffstat (limited to 'js')
-rwxr-xr-xjs/panels/components-panel.reel/components-panel.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/panels/components-panel.reel/components-panel.js b/js/panels/components-panel.reel/components-panel.js
index e6b7a6e3..c8e5ac9a 100755
--- a/js/panels/components-panel.reel/components-panel.js
+++ b/js/panels/components-panel.reel/components-panel.js
@@ -302,6 +302,7 @@ exports.ComponentsPanel = Montage.create(Component, {
302 componentInstanceOnFirstDraw: { 302 componentInstanceOnFirstDraw: {
303 value: function(instance) { 303 value: function(instance) {
304 this.application.ninja.elementMediator.addElements(instance.element); 304 this.application.ninja.elementMediator.addElements(instance.element);
305 this.application.ninja.currentDocument.model.mObjects.push(instance);
305 } 306 }
306 }, 307 },
307 308