From 7e6db5a574e63c5c21b15381c04736b6177cf0dc Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Wed, 4 Apr 2012 11:02:00 -0700 Subject: define "that" var correctly Signed-off-by: Jonathan Duran --- js/panels/Timeline/Layer.reel/Layer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/panels') 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, { // Initialize myself this.init(); - + var that = this; // Make it editable! this._layerEditable = Hintable.create(); this._layerEditable.element = this.titleSelector; @@ -491,7 +491,7 @@ var Layer = exports.Layer = Montage.create(Component, { }, false); this._layerEditable.addEventListener("change", function(event) { that.dynamicLayerName.value = that._layerEditable.value; - this.application.ninja.timeline.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = that.dynamicLayerName.value + this.application.ninja.timeline.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = that.dynamicLayerName.value; that.needsDraw = true; }, false); this._layerEditable.editingClass = "editable2"; -- cgit v1.2.3