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

Commit

Permalink
[jsfm] Fix the lint error in Document (#2368)
Browse files Browse the repository at this point in the history
Remove the useless temporary variable `result` in the `fireEvent` method.
  • Loading branch information
Hanks10100 authored and YorkShen committed Apr 25, 2019
1 parent 6cfbdbe commit b5c404a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions runtime/vdom/Document.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,12 @@ export default class Document {
if (domChanges) {
updateElement(el, domChanges)
}
let result
let isBubble
const $root = this.getRef('_root')
if ($root && $root.attr) {
isBubble = $root.attr['bubble'] === 'true'
}
result = el.fireEvent(type, event, isBubble, options)
return result
return el.fireEvent(type, event, isBubble, options)
}

/**
Expand Down

0 comments on commit b5c404a

Please sign in to comment.