diff options
author | Jose Antonio Marquez | 2012-05-30 22:54:36 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-05-30 22:54:36 -0700 |
commit | 322532ba45158835f7228f0149ddf6e22215bfa3 (patch) | |
tree | 1480485460777b11b7dbf80a91a0be2175beafc9 /js/controllers/elements | |
parent | 01277e9fe29eee098ed9398b9815eab2d1a52882 (diff) | |
download | ninja-322532ba45158835f7228f0149ddf6e22215bfa3.tar.gz |
Attempting to track clean nodes
Need to figure out CSS overwrite issue <style>
Diffstat (limited to 'js/controllers/elements')
-rwxr-xr-x | js/controllers/elements/element-controller.js | 3 |
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 | ||