You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "Tianyi Ma (JIRA)" <ji...@apache.org> on 2017/04/27 06:30:05 UTC

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

Tianyi Ma created WEEX-31:
-----------------------------

             Summary: 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


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.3.15#6346)