From 937fcd971085d53e3c44eb9554a2e8597c168f74 Mon Sep 17 00:00:00 2001 From: John Mayhew Date: Thu, 9 Feb 2012 09:30:06 -0800 Subject: fixed error with initializing and accessing the ninja version object from the main reel --- js/ninja.reel/ninja.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js') 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, { _preload: { value: false }, ninjaVersion: { - value: window.ninjaVersion.ninja.version + value: null }, toolsData: { value: null }, @@ -34,6 +34,7 @@ exports.Ninja = Montage.create(Component, { templateDidLoad: { value: function() { + this.ninjaVersion = window.ninjaVersion.ninja.version; this.eventManager.addEventListener( "preloadFinish", this, false); } }, -- cgit v1.2.3