Repository: incubator-weex Updated Branches: refs/heads/master 5ae6fe419 -> d10be0bcf
* [jsfm] use "indexOf" instead of "includes" in Element.fireEvent Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/d10be0bc Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/d10be0bc Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/d10be0bc Branch: refs/heads/master Commit: d10be0bcf9624ca0f56fe8f60d646f71ed2f1aa0 Parents: 5ae6fe4 Author: Hanks <zhanghan...@gmail.com> Authored: Mon Oct 9 16:34:26 2017 +0800 Committer: gurisxie <279483...@qq.com> Committed: Mon Oct 9 20:03:29 2017 +0800 ---------------------------------------------------------------------- html5/runtime/vdom/Element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/d10be0bc/html5/runtime/vdom/Element.js ---------------------------------------------------------------------- diff --git a/html5/runtime/vdom/Element.js b/html5/runtime/vdom/Element.js index 6663b51..15837f2 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