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)

Reply via email to