Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

Commit b5c404a

Browse files
Hanks10100YorkShen
authored andcommitted
[jsfm] Fix the lint error in Document (#2368)
Remove the useless temporary variable `result` in the `fireEvent` method.
1 parent 6cfbdbe commit b5c404a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

runtime/vdom/Document.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,12 @@ export default class Document {
183183
if (domChanges) {
184184
updateElement(el, domChanges)
185185
}
186-
let result
187186
let isBubble
188187
const $root = this.getRef('_root')
189188
if ($root && $root.attr) {
190189
isBubble = $root.attr['bubble'] === 'true'
191190
}
192-
result = el.fireEvent(type, event, isBubble, options)
193-
return result
191+
return el.fireEvent(type, event, isBubble, options)
194192
}
195193

196194
/**

0 commit comments

Comments
 (0)