aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/montage.js
diff options
context:
space:
mode:
authorJohn Mayhew2012-05-07 16:30:19 -0700
committerJohn Mayhew2012-05-07 16:30:19 -0700
commitdb4ba95f50148198759dde503ec1c778184d9dbe (patch)
tree8b79ad58108af2f17d15abc8cdc33d35229ab20d /node_modules/montage/montage.js
parent843d8ea8ee58a54bcb71d7b28dbf78fae153b491 (diff)
parent526e423e4a2734c2b139af23911e912452a4443f (diff)
downloadninja-db4ba95f50148198759dde503ec1c778184d9dbe.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into WorkingBranch
Conflicts: js/components/layout/tools-list.reel/tools-list.html js/components/layout/tools-properties.reel/tools-properties.html js/components/tools-properties/brush-properties.reel/brush-properties.html js/components/tools-properties/fill-properties.reel/fill-properties.html js/components/tools-properties/pen-properties.reel/pen-properties.html js/components/tools-properties/pencil-properties.reel/pencil-properties.html js/components/tools-properties/selection-properties.reel/selection-properties.html js/components/tools-properties/shape-properties.reel/shape-properties.html js/components/tools-properties/tag-properties.reel/tag-properties.html js/components/tools-properties/text-properties.reel/text-properties.html
Diffstat (limited to 'node_modules/montage/montage.js')
-rwxr-xr-xnode_modules/montage/montage.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/node_modules/montage/montage.js b/node_modules/montage/montage.js
index 05e1a52a..a174f50b 100755
--- a/node_modules/montage/montage.js
+++ b/node_modules/montage/montage.js
@@ -55,7 +55,7 @@ if (typeof window !== "undefined") {
55 var platform = exports.getPlatform(); 55 var platform = exports.getPlatform();
56 56
57 // Platform dependent 57 // Platform dependent
58 platform.bootstrap(function (Require, Promise, URL) { 58 platform.bootstrap(function (Require, Promise, URL, Clock) {
59 var params = platform.getParams(); 59 var params = platform.getParams();
60 var config = platform.getConfig(); 60 var config = platform.getConfig();
61 61
@@ -85,7 +85,8 @@ if (typeof window !== "undefined") {
85 Require.loadPackage(montageLocation, config) 85 Require.loadPackage(montageLocation, config)
86 .then(function (montageRequire) { 86 .then(function (montageRequire) {
87 montageRequire.inject("core/promise", Promise); 87 montageRequire.inject("core/promise", Promise);
88 montageRequire.inject("core/shim/timers", {}); 88 montageRequire.inject("core/next-tick", Clock);
89 montageRequire.inject("core/mini-url", URL);
89 90
90 // install the linter, which loads on the first error 91 // install the linter, which loads on the first error
91 config.lint = function (module) { 92 config.lint = function (module) {
@@ -311,7 +312,7 @@ if (typeof window !== "undefined") {
311 }, 312 },
312 313
313 bootstrap: function (callback) { 314 bootstrap: function (callback) {
314 var base, Require, DOM, Promise, URL; 315 var base, Require, DOM, Promise, URL, Clock;
315 316
316 var params = this.getParams(); 317 var params = this.getParams();
317 318
@@ -382,6 +383,7 @@ if (typeof window !== "undefined") {
382 383
383 // execute bootstrap scripts 384 // execute bootstrap scripts
384 function allModulesLoaded() { 385 function allModulesLoaded() {
386 Clock = bootRequire("core/next-tick");
385 Promise = bootRequire("core/promise"); 387 Promise = bootRequire("core/promise");
386 URL = bootRequire("core/mini-url"); 388 URL = bootRequire("core/mini-url");
387 Require = bootRequire("require/require"); 389 Require = bootRequire("require/require");
@@ -391,7 +393,7 @@ if (typeof window !== "undefined") {
391 393
392 function callbackIfReady() { 394 function callbackIfReady() {
393 if (DOM && Require) { 395 if (DOM && Require) {
394 callback(Require, Promise, URL); 396 callback(Require, Promise, URL, Clock);
395 } 397 }
396 } 398 }
397 399