aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements/element-controller.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-01 15:26:30 -0700
committerValerio Virgillito2012-06-01 15:26:30 -0700
commit4bb571a9551bba8a37bf3afd639412173d58bc71 (patch)
tree1be2a2883de37c44b471dae95b891ac8e67fc95b /js/controllers/elements/element-controller.js
parent8bbabd61e600e0a4aee72377c962d9147db1d8e1 (diff)
parent41e1d1f57aa60514ebeaa640e19ec4d145c33314 (diff)
downloadninja-4bb571a9551bba8a37bf3afd639412173d58bc71.tar.gz
Merge pull request #262 from joseeight/Document
Fixing webGL helper, setting up montage flag for clean up
Diffstat (limited to 'js/controllers/elements/element-controller.js')
-rwxr-xr-xjs/controllers/elements/element-controller.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/controllers/elements/element-controller.js b/js/controllers/elements/element-controller.js
index 20225c61..8447c3d3 100755
--- a/js/controllers/elements/element-controller.js
+++ b/js/controllers/elements/element-controller.js
@@ -11,6 +11,9 @@ exports.ElementController = Montage.create(Component, {
11 11
12 addElement: { 12 addElement: {
13 value: function(el, styles) { 13 value: function(el, styles) {
14
15 if (el.getAttribute) el.setAttribute('data-ninja-node', 'true');
16
14 if(this.application.ninja.timeline.currentLayerSelected) { 17 if(this.application.ninja.timeline.currentLayerSelected) {
15 var selectedLayerIndex = this.application.ninja.timeline.getLayerIndexByID(this.application.ninja.timeline.currentLayerSelected.layerData.layerID); 18 var selectedLayerIndex = this.application.ninja.timeline.getLayerIndexByID(this.application.ninja.timeline.currentLayerSelected.layerData.layerID);
16 19