aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/montage.js
diff options
context:
space:
mode:
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