diff options
author | John Mayhew | 2012-02-09 09:30:06 -0800 |
---|---|---|
committer | John Mayhew | 2012-02-09 09:30:06 -0800 |
commit | 937fcd971085d53e3c44eb9554a2e8597c168f74 (patch) | |
tree | d1b5f526c53ca55b2985e5f4d30f579c147f7942 | |
parent | e842ce3bdca5460f2dcca253e8882b5509f8a478 (diff) | |
download | ninja-937fcd971085d53e3c44eb9554a2e8597c168f74.tar.gz |
fixed error with initializing and accessing the ninja version object from the main reel
-rw-r--r-- | js/ninja.reel/ninja.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 90015f5a..469d38f7 100644 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -14,7 +14,7 @@ exports.Ninja = Montage.create(Component, { | |||
14 | _preload: { value: false }, | 14 | _preload: { value: false }, |
15 | 15 | ||
16 | ninjaVersion: { | 16 | ninjaVersion: { |
17 | value: window.ninjaVersion.ninja.version | 17 | value: null |
18 | }, | 18 | }, |
19 | 19 | ||
20 | toolsData: { value: null }, | 20 | toolsData: { value: null }, |
@@ -34,6 +34,7 @@ exports.Ninja = Montage.create(Component, { | |||
34 | 34 | ||
35 | templateDidLoad: { | 35 | templateDidLoad: { |
36 | value: function() { | 36 | value: function() { |
37 | this.ninjaVersion = window.ninjaVersion.ninja.version; | ||
37 | this.eventManager.addEventListener( "preloadFinish", this, false); | 38 | this.eventManager.addEventListener( "preloadFinish", this, false); |
38 | } | 39 | } |
39 | }, | 40 | }, |