From bdd651bb45c137e8f6bcf860029a399c79cffbf7 Mon Sep 17 00:00:00 2001 From: Hanks Date: Mon, 9 Oct 2017 16:34:26 +0800 Subject: [PATCH] * [jsfm] use "indexOf" instead of "includes" in Element.fireEvent --- html5/runtime/vdom/Element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html5/runtime/vdom/Element.js b/html5/runtime/vdom/Element.js index 6663b51404..15837f2a05 100644 --- a/html5/runtime/vdom/Element.js +++ b/html5/runtime/vdom/Element.js @@ -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