diff options
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-x | js/ninja.reel/ninja.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index ca094936..9cbbc9b9 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -6,6 +6,7 @@ | |||
6 | 6 | ||
7 | var Montage = require("montage/core/core").Montage, | 7 | var Montage = require("montage/core/core").Montage, |
8 | Component = require("montage/ui/component").Component, | 8 | Component = require("montage/ui/component").Component, |
9 | UndoManager = require("montage/core/undo-manager").UndoManager, | ||
9 | AppData = require("js/data/appdata").AppData; | 10 | AppData = require("js/data/appdata").AppData; |
10 | 11 | ||
11 | var matrix = require("js/lib/math/matrix"); | 12 | var matrix = require("js/lib/math/matrix"); |
@@ -121,7 +122,7 @@ exports.Ninja = Montage.create(Component, { | |||
121 | templateDidLoad: { | 122 | templateDidLoad: { |
122 | value: function() { | 123 | value: function() { |
123 | this.ninjaVersion = window.ninjaVersion.ninja.version; | 124 | this.ninjaVersion = window.ninjaVersion.ninja.version; |
124 | this.eventManager.addEventListener( "preloadFinish", this, false); | 125 | this.undoManager = document.application.undoManager = UndoManager.create(); |
125 | } | 126 | } |
126 | }, | 127 | }, |
127 | 128 | ||
@@ -140,7 +141,6 @@ exports.Ninja = Montage.create(Component, { | |||
140 | 141 | ||
141 | window.addEventListener("resize", this, false); | 142 | window.addEventListener("resize", this, false); |
142 | 143 | ||
143 | // this.eventManager.addEventListener( "appLoading", this, false); // Don't need this anymore | ||
144 | this.eventManager.addEventListener( "selectTool", this, false); | 144 | this.eventManager.addEventListener( "selectTool", this, false); |
145 | this.eventManager.addEventListener( "selectSubTool", this, false); | 145 | this.eventManager.addEventListener( "selectSubTool", this, false); |
146 | this.eventManager.addEventListener( "onOpenDocument", this, false); | 146 | this.eventManager.addEventListener( "onOpenDocument", this, false); |