aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Duran2012-04-04 11:02:00 -0700
committerJonathan Duran2012-04-04 11:02:00 -0700
commit7e6db5a574e63c5c21b15381c04736b6177cf0dc (patch)
treeecef75a9d37812d4f7aafd9f7d7ed88683ebbd0b
parent242bdd4f963f35dd1ecdb4e88e6529530217d9ec (diff)
downloadninja-7e6db5a574e63c5c21b15381c04736b6177cf0dc.tar.gz
define "that" var correctly
Signed-off-by: Jonathan Duran <jduran@motorola.com>
-rw-r--r--js/panels/Timeline/Layer.reel/Layer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index 679b88f3..5a393039 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -480,7 +480,7 @@ var Layer = exports.Layer = Montage.create(Component, {
480 480
481 // Initialize myself 481 // Initialize myself
482 this.init(); 482 this.init();
483 483 var that = this;
484 // Make it editable! 484 // Make it editable!
485 this._layerEditable = Hintable.create(); 485 this._layerEditable = Hintable.create();
486 this._layerEditable.element = this.titleSelector; 486 this._layerEditable.element = this.titleSelector;
@@ -491,7 +491,7 @@ var Layer = exports.Layer = Montage.create(Component, {
491 }, false); 491 }, false);
492 this._layerEditable.addEventListener("change", function(event) { 492 this._layerEditable.addEventListener("change", function(event) {
493 that.dynamicLayerName.value = that._layerEditable.value; 493 that.dynamicLayerName.value = that._layerEditable.value;
494 this.application.ninja.timeline.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = that.dynamicLayerName.value 494 this.application.ninja.timeline.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = that.dynamicLayerName.value;
495 that.needsDraw = true; 495 that.needsDraw = true;
496 }, false); 496 }, false);
497 this._layerEditable.editingClass = "editable2"; 497 this._layerEditable.editingClass = "editable2";