1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
Description: Insert required variable definition.
Forwarded: not-needed
Author: Paolo Greppi <paolo.greppi@libpf.com>
--- a/src/core/vdom/patch.js
+++ b/src/core/vdom/patch.js
@@ -169,6 +169,7 @@
setScope(vnode)
/* istanbul ignore if */
+ const __WEEX__ = false;
if (__WEEX__) {
// in Weex, the default insertion order is parent-first.
// List items can be optimized to use children-first insertion
--- a/src/compiler/codegen/events.js
+++ b/src/compiler/codegen/events.js
@@ -98,6 +98,7 @@
return handler.value
}
/* istanbul ignore if */
+ const __WEEX__ = false;
if (__WEEX__ && handler.params) {
return genWeexHandler(handler.params, handler.value)
}
--- a/src/compiler/codegen/index.js
+++ b/src/compiler/codegen/index.js
@@ -484,6 +484,7 @@
}
function genProps (props: Array<{ name: string, value: any }>): string {
+ const __WEEX__ = false;
let res = ''
for (let i = 0; i < props.length; i++) {
const prop = props[i]
--- a/src/core/util/props.js
+++ b/src/core/util/props.js
@@ -51,6 +51,7 @@
observe(value)
toggleObserving(prevShouldObserve)
}
+ const __WEEX__ = false;
if (
process.env.NODE_ENV !== 'production' &&
// skip validation for weex recycle-list child component props
--- a/src/core/vdom/create-component.js
+++ b/src/core/vdom/create-component.js
@@ -205,6 +205,7 @@
// extracting cell-slot template.
// https://github.com/Hanks10100/weex-native-directive/tree/master/component
/* istanbul ignore if */
+ const __WEEX__ = false;
if (__WEEX__ && isRecyclableComponent(vnode)) {
return renderRecyclableComponentTemplate(vnode)
}
--- a/src/core/vdom/create-element.js
+++ b/src/core/vdom/create-element.js
@@ -71,6 +71,7 @@
if (process.env.NODE_ENV !== 'production' &&
isDef(data) && isDef(data.key) && !isPrimitive(data.key)
) {
+ const __WEEX__ = false;
if (!__WEEX__ || !('@binding' in data.key)) {
warn(
'Avoid using non-primitive value as key, ' +
--- a/src/core/vdom/helpers/update-listeners.js
+++ b/src/core/vdom/helpers/update-listeners.js
@@ -55,6 +55,7 @@
old = oldOn[name]
event = normalizeEvent(name)
/* istanbul ignore if */
+ const __WEEX__ = false;
if (__WEEX__ && isPlainObject(def)) {
cur = def.handler
event.params = def.params
|