packages/weex-vue-framework/index.js
function createInstanceContext (
  instanceId,
  runtimeContext,
  data
) {
  if ( data === void 0 ) data = {};

  var weex = runtimeContext.weex;
  var instance = instanceOptions[instanceId] = {
    instanceId: instanceId,
    config: weex.config,
    document: weex.document,
    data: data
  };

  // Each instance has a independent `Vue` module instance
  var Vue = instance.Vue = createVueModuleInstance(instanceId, weex);

  // DEPRECATED
  var timerAPIs = getInstanceTimer(instanceId, weex.requireModule);

  var instanceContext = Object.assign({ Vue: Vue }, timerAPIs);
  Object.freeze(instanceContext);
  return instanceContext
}
function createInstanceContext (
  instanceId,
  runtimeContext,
  data
) {
  if ( data === void 0 ) data = {};

  var weex = runtimeContext.weex;
  var instance = instanceOptions[instanceId] = {
    instanceId: instanceId,
    config: weex.config,
    document: weex.document,
    data: data
  };

  // Each instance has a independent `Vue` module instance
  var Vue = instance.Vue = createVueModuleInstance(instanceId, weex);

  // DEPRECATED
  var timerAPIs = getInstanceTimer(instanceId, weex.requireModule);

  var instanceContext = Object.assign({ Vue: Vue }, timerAPIs);
  Object.freeze(instanceContext);
  return instanceContext
}
function createInstanceContext ( instanceId , runtimeContext , data ) { if ( data === void 0 ) data = { } ; var weex = runtimeContext . weex ; var instance = instanceOptions [ instanceId ] = { instanceId : instanceId , config : weex . config , document : weex . document , data : data } ; // Each instance has a independent `Vue` module instance var Vue = instance . Vue = createVueModuleInstance ( instanceId , weex ) ; // DEPRECATED var timerAPIs = getInstanceTimer ( instanceId , weex . requireModule ) ; var instanceContext = Object . assign ( { Vue : Vue } , timerAPIs ) ; Object . freeze ( instanceContext ) ; return instanceContext }
Create instance context.
Create instance context .