Bubbling Library > Examples

Examples of Using the Bubbling Technique: Global Behaviors

In this example you will see how to define a global behavior called "actionGlobalBahavior", and every link or button in this page that have a className equal to "actionGlobalBahavior" will fire this behavior, even when the element is created form JavaScript or by another component in the page, even before or after the definition of the global behavior.

From Markup Link with behavior
From JavaScript Link without behavior