Overriding bind and unbind"
From Documentation
Tmillsclare (talk | contribs) m (Created page with '{{ZKComponentDevelopmentEssentialsPageHeader}} The following diagrams outline when the <mp>bind_</mp> and <mp>unbind_</mp> methods are called. Firstly let’s take a look at how…') |
Tmillsclare (talk | contribs) m |
||
Line 10: | Line 10: | ||
Now that we have had a brief introduction of bind_ and unbind_ let’s see the methods put into action when we bind appropriate listeners for events. | Now that we have had a brief introduction of bind_ and unbind_ let’s see the methods put into action when we bind appropriate listeners for events. | ||
+ | |||
+ | {{ZKComponentDevelopmentEssentialsPageFooter}} |
Revision as of 05:00, 14 July 2010
The following diagrams outline when the bind_ and unbind_ methods are called. Firstly let’s take a look at how binding works.
The unbind_ function is very similar. Upon detaching of the widget from the DOM the unbind_ method is called enabling us to perform tasks such as adding and removing listeners to avoid memory leaks. The diagram below demonstrates this.
Now that we have had a brief introduction of bind_ and unbind_ let’s see the methods put into action when we bind appropriate listeners for events.