You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2018/06/27 12:01:57 UTC

incubator-weex git commit: [WEEX-445][jsfm] export requireModule to global

Repository: incubator-weex
Updated Branches:
  refs/heads/master b698154dd -> aebd432f5


[WEEX-445][jsfm] export requireModule to global


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/aebd432f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/aebd432f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/aebd432f

Branch: refs/heads/master
Commit: aebd432f564f3816f96831e12725844ec23f57f5
Parents: b698154
Author: Zhenfei You <he...@imyzf.com>
Authored: Fri Jun 8 17:26:14 2018 +0800
Committer: Zhenfei You <he...@imyzf.com>
Committed: Wed Jun 27 19:39:23 2018 +0800

----------------------------------------------------------------------
 runtime/api/init.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/aebd432f/runtime/api/init.js
----------------------------------------------------------------------
diff --git a/runtime/api/init.js b/runtime/api/init.js
index 41bdd0f..b5a0044 100644
--- a/runtime/api/init.js
+++ b/runtime/api/init.js
@@ -117,6 +117,7 @@ function createInstanceContext (id, options = {}, data) {
   Object.assign(runtimeContext, services, {
     weex,
     getJSFMVersion,
+    requireModule: (...args) => weex.requireModule(...args),
     __WEEX_CALL_JAVASCRIPT__: receiveTasks,
     services // Temporary compatible with some legacy APIs in Rax
   })