From 24b483db367291b72170f969de78efcb1a9b95bd Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 3 May 2012 22:53:07 -0700 Subject: integrating the latest montage version Signed-off-by: Valerio Virgillito --- node_modules/montage/montage.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'node_modules/montage/montage.js') 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") { var platform = exports.getPlatform(); // Platform dependent - platform.bootstrap(function (Require, Promise, URL) { + platform.bootstrap(function (Require, Promise, URL, Clock) { var params = platform.getParams(); var config = platform.getConfig(); @@ -85,7 +85,8 @@ if (typeof window !== "undefined") { Require.loadPackage(montageLocation, config) .then(function (montageRequire) { montageRequire.inject("core/promise", Promise); - montageRequire.inject("core/shim/timers", {}); + montageRequire.inject("core/next-tick", Clock); + montageRequire.inject("core/mini-url", URL); // install the linter, which loads on the first error config.lint = function (module) { @@ -311,7 +312,7 @@ if (typeof window !== "undefined") { }, bootstrap: function (callback) { - var base, Require, DOM, Promise, URL; + var base, Require, DOM, Promise, URL, Clock; var params = this.getParams(); @@ -382,6 +383,7 @@ if (typeof window !== "undefined") { // execute bootstrap scripts function allModulesLoaded() { + Clock = bootRequire("core/next-tick"); Promise = bootRequire("core/promise"); URL = bootRequire("core/mini-url"); Require = bootRequire("require/require"); @@ -391,7 +393,7 @@ if (typeof window !== "undefined") { function callbackIfReady() { if (DOM && Require) { - callback(Require, Promise, URL); + callback(Require, Promise, URL, Clock); } } -- cgit v1.2.3