You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "Adam Feng (JIRA)" <ji...@apache.org> on 2017/10/07 06:43:02 UTC

[jira] [Resolved] (WEEX-31) weex support Event Bubbling

     [ https://issues.apache.org/jira/browse/WEEX-31?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Feng resolved WEEX-31.
---------------------------
    Resolution: Fixed

> weex support Event Bubbling
> ---------------------------
>
>                 Key: WEEX-31
>                 URL: https://issues.apache.org/jira/browse/WEEX-31
>             Project: Weex
>          Issue Type: New Feature
>         Environment: iOS, Android, HTML5
>            Reporter: Tianyi Ma
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> This version will follow the W3C standard to implement event bubbling.
> Before: jsfm receives the event after the fireEvent event, which triggers the corresponding element binding.
> After: jsfm receive fireEvent event, it will trigger the corresponding element of the event handler, and the event back to the root component recursive, triggering the path of all binding handler node.
> To terminate the bubbling behavior: In the handler for the node on the path, write el.stopPropagation() to prevent further delivery.
> For forward compatibility, the bubbling mechanism is not turned on by default. If you want to use it, you can open it in the configuration.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)