Hanks10100 commented on a change in pull request #1520: [jsfm] separate vue framework and add vue-api URL: https://github.com/apache/incubator-weex/pull/1520#discussion_r217253877
########## File path: runtime/entries/vue.js ########## @@ -17,7 +17,45 @@ * under the License. */ -import setup from './setup' -import * as Vue from 'weex-vue-framework' +const instanceOptions = {} -setup({ Vue }) +const Vue = { + createInstanceContext (instanceId, runtimeContext, data) { + const weex = runtimeContext.weex + const instance = instanceOptions[instanceId] = { + document: weex.document, + lifecycle: {} + } + + const instanceContext = { + __weex_instance_id__: instanceId, Review comment: The `__weex_instance_id__`, `__weex_document__`, `__weex_config__` can be get from the `weex` variable, there is no need to pass those apis to instance context. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services