diff options
author | Eric Guzman | 2012-04-04 11:36:22 -0700 |
---|---|---|
committer | Eric Guzman | 2012-04-04 11:36:22 -0700 |
commit | af52148777d554dc6e55a736574b82e4916f1fea (patch) | |
tree | 39705d138b489d2e90722238c850320fd6b6a8e9 /js/ninja.reel/ninja.js | |
parent | b7ca1821ad43403a2a54361ffc6a0cdf9cba0e59 (diff) | |
parent | a11ef2eed7049835c8bdfa50a2b893632c46eaa0 (diff) | |
download | ninja-af52148777d554dc6e55a736574b82e4916f1fea.tar.gz |
Merge branch 'refs/heads/master' into PresetsPI
Conflicts:
js/controllers/presets-controller.js
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); |