aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Duran2012-06-20 11:32:49 -0700
committerJonathan Duran2012-06-20 11:32:49 -0700
commit022e714cb5d10cd8575ab9907eddfb184a990b66 (patch)
tree6c17e3e7a222284b9cbcf560aa86b21f99a82b98
parenteb228e0489928f0464c295a024f0d45cf0a147c8 (diff)
downloadninja-022e714cb5d10cd8575ab9907eddfb184a990b66.tar.gz
remove old method
Signed-off-by: Jonathan Duran <jduran@motorola.com>
-rwxr-xr-xjs/controllers/elements/element-controller.js20
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