From 367c2e34a1d53c3122c5487bb39606a2e8bca380 Mon Sep 17 00:00:00 2001 From: Hanks Date: Wed, 11 Jan 2017 00:02:55 +0800 Subject: [PATCH] [weex] Use weex.requireModule instead of weex.require (#4682) * [weex] use weex.requireModule instead of weex.require * [weex] fix the deprecated __weex_require_module__ --- src/entries/weex-framework.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entries/weex-framework.js b/src/entries/weex-framework.js index 619f0d40..939dcad4 100755 --- a/src/entries/weex-framework.js +++ b/src/entries/weex-framework.js @@ -91,7 +91,7 @@ export function createInstance ( const weexInstanceVar = { config, document, - require: moduleGetter + requireModule: moduleGetter } Object.freeze(weexInstanceVar) @@ -112,7 +112,7 @@ export function createInstance ( const instanceVars = Object.assign({ Vue: subVue, weex: weexInstanceVar, - __weex_require_module__: weexInstanceVar.require // deprecated + __weex_require_module__: weexInstanceVar.requireModule // deprecated }, timerAPIs) callFunction(instanceVars, appCode)