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

Commit

Permalink
* [jsfm] use "indexOf" instead of "includes" in Element.fireEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanks10100 authored and gurisxie committed Oct 9, 2017
1 parent 5ae6fe4 commit d10be0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html5/runtime/vdom/Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export default class Element extends Node {

if (!isStopPropagation
&& isBubble
&& BUBBLE_EVENTS.includes(type)
&& (BUBBLE_EVENTS.indexOf(type) !== -1)
&& this.parentNode
&& this.parentNode.fireEvent) {
event.currentTarget = this.parentNode
Expand Down

0 comments on commit d10be0b

Please sign in to comment.