Bookmarks and Feeds Information
The most common technique to apply an action to a large number of links, buttons or images, is the use of "getElementByTagName", processing each tag and creating an instance of the desired component (context menu, snapshot, thumbnail, etc), and attach the corresponding object to each tag. This pre-processing can freeze your browser, and usually create memory leaks when you are using dynamic areas. With the bubbling technique we can guarantee the success without worry about dynamic areas. You will have the advantage of the possibility to catch the mouse event before any other element in the page, and determine the target of the event, analyze it, and then apply the certain behavior to this class of target.
Actually there is three components in the bubbling library that use this technique to create different behaviors:
- Bookmark Links
With this component you have the possibility to catch the mouse event, and determine if the target is a Bookmark link or a Feed RSS link, and then drive the event to show a context menu with a certain list of links. Besides, this implementation using the bubbles "Navigate" and "Properties" only has an instance of the context menu's object, decreasing the memory use and compiling the context menu on the fly in real time when is needed. - Feed Links
As the bookmark links behavior, this implementation uses the same technique, and allow to create a context menu for RSS Channel's links, and offering to clients the opportunity to decide what to do with the RSS links.







