diff options
author | Jonathan Duran | 2012-06-20 11:32:49 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-06-20 11:32:49 -0700 |
commit | 022e714cb5d10cd8575ab9907eddfb184a990b66 (patch) | |
tree | 6c17e3e7a222284b9cbcf560aa86b21f99a82b98 /js/controllers/elements | |
parent | eb228e0489928f0464c295a024f0d45cf0a147c8 (diff) | |
download | ninja-022e714cb5d10cd8575ab9907eddfb184a990b66.tar.gz |
remove old method
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/controllers/elements')
-rwxr-xr-x | js/controllers/elements/element-controller.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/js/controllers/elements/element-controller.js b/js/controllers/elements/element-controller.js index fcb121ee..1e05b09b 100755 --- a/js/controllers/elements/element-controller.js +++ b/js/controllers/elements/element-controller.js | |||
@@ -31,26 +31,6 @@ exports.ElementController = Montage.create(Component, { | |||
31 | if(styles) { | 31 | if(styles) { |
32 | this.application.ninja.stylesController.setElementStyles(el, styles); | 32 | this.application.ninja.stylesController.setElementStyles(el, styles); |
33 | } | 33 | } |
34 | |||
35 | /* | ||
36 | // Old methods. Kept for reference. Delete if not needed. JR. | ||
37 | if(this.application.ninja.timeline.currentLayerSelected) { | ||
38 | var selectedLayerIndex = this.application.ninja.timeline.getLayerIndexByID(this.application.ninja.timeline.currentLayerSelected.layerData.layerID); | ||
39 | |||
40 | if(selectedLayerIndex === 0) { | ||
41 | this.application.ninja.currentDocument.model.domContainer.appendChild(el); | ||
42 | } else { | ||
43 | var element = this.application.ninja.timeline.arrLayers[selectedLayerIndex].layerData.stageElement; | ||
44 | element.parentNode.insertBefore(el, element.nextSibling); | ||
45 | } | ||
46 | } else { | ||
47 | this.application.ninja.currentDocument.model.domContainer.appendChild(el); | ||
48 | } | ||
49 | |||
50 | if(styles) { | ||
51 | this.application.ninja.stylesController.setElementStyles(el, styles); | ||
52 | } | ||
53 | */ | ||
54 | } | 34 | } |
55 | }, | 35 | }, |
56 | 36 | ||