diff options
author | Jonathan Duran | 2012-04-04 11:02:00 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-04-04 11:02:00 -0700 |
commit | 7e6db5a574e63c5c21b15381c04736b6177cf0dc (patch) | |
tree | ecef75a9d37812d4f7aafd9f7d7ed88683ebbd0b /js | |
parent | 242bdd4f963f35dd1ecdb4e88e6529530217d9ec (diff) | |
download | ninja-7e6db5a574e63c5c21b15381c04736b6177cf0dc.tar.gz |
define "that" var correctly
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js')
-rw-r--r-- | js/panels/Timeline/Layer.reel/Layer.js | 4 |
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"; |