diff options
author | Valerio Virgillito | 2012-02-01 16:43:08 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-01 16:43:08 -0800 |
commit | f07bbfaa60c3fb7c2412c5aa97b49d114d6a88ea (patch) | |
tree | 4cf968a193a1f1f7fb40a220df5075fce53e20a8 /js/ninja.reel | |
parent | 05bba59fc9cb0ce07175e5f0865a319e9dd0ff52 (diff) | |
download | ninja-f07bbfaa60c3fb7c2412c5aa97b49d114d6a88ea.tar.gz |
Adding njUtils as a component and adding it to the application object
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/ninja.reel')
-rw-r--r-- | js/ninja.reel/ninja.html | 8 | ||||
-rw-r--r-- | js/ninja.reel/ninja.js | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/js/ninja.reel/ninja.html b/js/ninja.reel/ninja.html index 706c8243..f3ff3d58 100644 --- a/js/ninja.reel/ninja.html +++ b/js/ninja.reel/ninja.html | |||
@@ -259,6 +259,11 @@ | |||
259 | "name": "NewFileWorkflowController" | 259 | "name": "NewFileWorkflowController" |
260 | }, | 260 | }, |
261 | 261 | ||
262 | "njUtils": { | ||
263 | "module":"js/lib/nj-utils", | ||
264 | "name": "NJUtils" | ||
265 | }, | ||
266 | |||
262 | "owner": { | 267 | "owner": { |
263 | "module": "js/ninja.reel", | 268 | "module": "js/ninja.reel", |
264 | "name": "Ninja", | 269 | "name": "Ninja", |
@@ -279,7 +284,8 @@ | |||
279 | "stylesController": {"@": "stylesController"}, | 284 | "stylesController": {"@": "stylesController"}, |
280 | "filePickerController": {"@": "filePickerController"}, | 285 | "filePickerController": {"@": "filePickerController"}, |
281 | "newFileController": {"@": "newFileController"}, | 286 | "newFileController": {"@": "newFileController"}, |
282 | "documentBar": {"@": "documentBar"} | 287 | "documentBar": {"@": "documentBar"}, |
288 | "njUtils": {"@": "njUtils"} | ||
283 | } | 289 | } |
284 | } | 290 | } |
285 | 291 | ||
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 465533cd..7115b228 100644 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -34,6 +34,8 @@ exports.Ninja = Montage.create(Component, { | |||
34 | 34 | ||
35 | templateDidLoad: { | 35 | templateDidLoad: { |
36 | value: function() { | 36 | value: function() { |
37 | this.application.njutils = this.njUtils; | ||
38 | |||
37 | this.eventManager.addEventListener( "preloadFinish", this, false); | 39 | this.eventManager.addEventListener( "preloadFinish", this, false); |
38 | } | 40 | } |
39 | }, | 41 | }, |