From b73cc6e348f3eb4cd57b5afeb7a6f5d3633b7e6b Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Wed, 6 Jun 2012 11:05:02 -0700 Subject: Fix references to documentController.activeDocument to currentDocument.model Signed-off-by: Jonathan Duran --- js/panels/Timeline/Layer.reel/Layer.js | 4 ++-- js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | 6 +++--- js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'js/panels') diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js index 4da1bfba..3fc5a3e1 100644 --- a/js/panels/Timeline/Layer.reel/Layer.js +++ b/js/panels/Timeline/Layer.reel/Layer.js @@ -744,7 +744,7 @@ var Layer = exports.Layer = Montage.create(Component, { if (this._layerEditable.value !== this.layerName) { this.layerName = this._layerEditable.value; - this.application.ninja.documentController.activeDocument.needsSave = true; + this.application.ninja.currentDocument.model.needsSave = true; this.layerData.stageElement.setAttribute("id",this._layerEditable.value); } } @@ -782,7 +782,7 @@ var Layer = exports.Layer = Montage.create(Component, { this.layerName = newVal; if (newVal !== this.layerName) { this.layerName = newVal; - this.application.ninja.documentController.activeDocument.needsSave = true; + this.application.ninja.currentDocument.model.needsSave = true; this.layerData.stageElement.setAttribute("id", newVal); } } diff --git a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js index 1e495402..59bc14e4 100644 --- a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js +++ b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js @@ -270,7 +270,7 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { this.nextKeyframe += 1; } - this.application.ninja.documentController.activeDocument.needsSave = true; + this.application.ninja.currentDocument.model.needsSave = true; } }, @@ -309,7 +309,7 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { break; } } - this.application.ninja.documentController.activeDocument.needsSave = true; + this.application.ninja.currentDocument.model.needsSave = true; } }, @@ -342,7 +342,7 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { keyframeString += " }"; // set the keyframe string as the new rule this.currentKeyframeRule = this.ninjaStylesContoller.addRule(keyframeString); - this.application.ninja.documentController.activeDocument.needsSave = true; + this.application.ninja.currentDocument.model.needsSave = true; } }, diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index 0bd4b674..bd55f2fb 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js @@ -725,7 +725,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { break; } } - this.application.ninja.documentController.activeDocument.needsSave = true; + this.application.ninja.currentDocument.model.needsSave = true; } }, -- cgit v1.2.3