Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platforms/weex/entry-framework.js
Original file line number Diff line number Diff line change
@@ -94,6 +94,8 @@ export function createInstance (
weex: weexInstanceVar
}, timerAPIs, env.services)

appCode = `(function(global){ \n${appCode}\n })(Object.create(this))`

if (!callFunctionNative(instanceVars, appCode)) {
// If failed to compile functionBody on native side,
// fallback to 'callFunction()'.

0 comments on commit f975fac

Please sign in to comment.