File tree 4 files changed +3
-4
lines changed
4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change
1
+ // global flag to be compiled away
2
+ declare var __WEEX__: boolean ;
3
+
1
4
declare type CompilerOptions = {
2
5
warn ?: Function ; // allow customizing warning in different environments; e.g. node
3
6
expectHTML ? : boolean ; // only false for non-web builds
Original file line number Diff line number Diff line change @@ -82,7 +82,6 @@ function genHandler (
82
82
if ( isMethodPath || isFunctionExpression ) {
83
83
return handler . value
84
84
}
85
- // $flow-disable-line
86
85
if ( __WEEX__ && handler . params ) {
87
86
return genWeexHandler ( handler . params , handler . value )
88
87
}
@@ -122,7 +121,6 @@ function genHandler (
122
121
: isFunctionExpression
123
122
? `( $ { handler . value } ) ( $event ) `
124
123
: handler.value
125
- // $flow-disable-line
126
124
if (__WEEX__ && handler.params) {
127
125
return genWeexHandler(handler.params, code + handlerCode)
128
126
}
Original file line number Diff line number Diff line change @@ -148,7 +148,6 @@ export function createComponent (
148
148
// template. This is essentially inline expanding instead of creating
149
149
// an actual instance.
150
150
// https://github.com/Hanks10100/weex-native-directive/tree/master/component
151
- // $flow-disable-line
152
151
if ( __WEEX__ && data . attrs && data . attrs [ '@isInRecycleList' ] ) {
153
152
const altRender = Ctor . options [ '@render' ]
154
153
if ( altRender ) {
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ export function updateListeners (
54
54
def = cur = on [ name ]
55
55
old = oldOn [ name ]
56
56
event = normalizeEvent ( name )
57
- // $flow-disable-line
58
57
if ( __WEEX__ && isPlainObject ( def ) ) {
59
58
cur = def . handler
60
59
event . params = def . params
You can’t perform that action at this time.
0 commit comments