[ 
https://issues.apache.org/jira/browse/WEEX-445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524886#comment-16524886
 ] 

ASF GitHub Bot commented on WEEX-445:
-------------------------------------

Github user imyzf commented on a diff in the pull request:

    https://github.com/apache/incubator-weex/pull/1254#discussion_r198445526
  
    --- Diff: runtime/api/init.js ---
    @@ -117,6 +117,7 @@ function createInstanceContext (id, options = {}, data) 
{
       Object.assign(runtimeContext, services, {
         weex,
         getJSFMVersion,
    +    requireModule: weex.requireModule,
    --- End diff --
    
    done.


> export requireModule to global
> ------------------------------
>
>                 Key: WEEX-445
>                 URL: https://issues.apache.org/jira/browse/WEEX-445
>             Project: Weex
>          Issue Type: New Feature
>          Components: JSFM
>            Reporter: Zhenfei You
>            Assignee: Hanks Zhang
>            Priority: Major
>
> Export requireModule to global, so we can use
> {code:javascript}
> var navigator = requireModule('navigator')
> {code}
> it is equal to 
> {code:javascript}
> var navigator = weex.requireModule('navigator')
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to