Browse Source

[weex] Use weex.requireModule instead of weex.require (#4682)

* [weex] use weex.requireModule instead of weex.require

* [weex] fix the deprecated __weex_require_module__
dev
Hanks 8 years ago
committed by Evan You
parent
commit
367c2e34a1
  1. 4
      src/entries/weex-framework.js

4
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)

Loading…
Cancel
Save