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 has a className equal to "actionGlobalBahavior" will fire this behavior, even when the element is created from 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