diff --git a/cocos2d/core/load-pipeline/downloader.js b/cocos2d/core/load-pipeline/downloader.js index 6fa1b65c9b2..a4ccafca7b6 100644 --- a/cocos2d/core/load-pipeline/downloader.js +++ b/cocos2d/core/load-pipeline/downloader.js @@ -44,12 +44,6 @@ else { } function downloadScript (item, callback, isAsync) { - if (sys.platform === sys.WECHAT_GAME) { - require(item.url); - callback(null, item.url); - return; - } - var url = item.url, d = document, s = document.createElement('script'); diff --git a/gulp/browserify_prelude.js b/gulp/browserify_prelude.js index 4c7b75a746c..f31f153b1bb 100644 --- a/gulp/browserify_prelude.js +++ b/gulp/browserify_prelude.js @@ -15,12 +15,6 @@ if(!module) { var moduleData = modules[name]; if(!moduleData) { - // if we cannot find the module within our internal map or - // cache jump to the current global require ie. the last bundle - // that was added to the page. - var currentRequire = typeof require == "function" && require; - if (!jumped && currentRequire) return currentRequire(name, true); - // this module is excluded from engine return undefined; }