You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ta...@apache.org on 2017/06/04 06:05:05 UTC

[03/20] incubator-weex git commit: * [html5] export init method to weex.

* [html5] export init method to weex.


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

Branch: refs/heads/0.13-dev
Commit: 913709244cd6d0cf1ff1253d4d2005299e5954c3
Parents: 7a6b69a
Author: MrRaindrop <te...@gmail.com>
Authored: Thu May 25 15:24:28 2017 +0800
Committer: MrRaindrop <te...@gmail.com>
Committed: Thu May 25 15:24:28 2017 +0800

----------------------------------------------------------------------
 html5/render/vue/index.js             | 4 ++++
 package.json                          | 2 +-
 packages/weex-vue-render/package.json | 2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/91370924/html5/render/vue/index.js
----------------------------------------------------------------------
diff --git a/html5/render/vue/index.js b/html5/render/vue/index.js
index d821b54..3cec4ca 100644
--- a/html5/render/vue/index.js
+++ b/html5/render/vue/index.js
@@ -29,7 +29,9 @@ import { base, style } from './mixins'
  *         - components.
  *         - modules.
  */
+let _inited = false
 function init (Vue/*, options = {}*/) {
+  if (_inited) { return }
   setVue(Vue)
 
   Vue.prototype.$getConfig = () => {
@@ -64,6 +66,8 @@ if (typeof window !== 'undefined' && window.Vue) {
   init(window.Vue)
 }
 
+weex.init = init
+
 // perf stat for componentCount.
 window._component_count = 0
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/91370924/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 16779e1..421ada9 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
   "subversion": {
     "browser": "0.5.0",
     "framework": "0.20.6",
-    "vue-render": "0.11.41",
+    "vue-render": "0.11.42",
     "transformer": ">=0.1.5 <0.5"
   },
   "description": "A framework for building Mobile cross-platform UI",

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/91370924/packages/weex-vue-render/package.json
----------------------------------------------------------------------
diff --git a/packages/weex-vue-render/package.json b/packages/weex-vue-render/package.json
index 6f17d2d..8cc0c47 100644
--- a/packages/weex-vue-render/package.json
+++ b/packages/weex-vue-render/package.json
@@ -1,6 +1,6 @@
 {
   "name": "weex-vue-render",
-  "version": "0.11.41",
+  "version": "0.11.42",
   "description": "Weex built-in components for Vue 2.x.",
   "license": "Apache-2.0",
   "main": "dist/index.js",