DOMAssistant 2.8 hits beta 3

February 1st, 2010 by chenghong

Changes since beta 2:

  • [New] Ability to avoid global namespace collision of $ and $$ with DOMAssistant.harmonize()
  • [Fix] ID selectors containing $ and = do not work
  • [Fix] Some events cannot be removed via removeEvent, such as mutation events

Introducing the ‘harmony’ mode

The harmony mode allows DOMAssistant to live with other Javascript libraries on the same page without conflict. To use it, just invoke DOMAssistant.harmonize(), like so:

<script type="text/javascript" src="DOMAssistantCompressed.js"> </script>
<script type="text/javascript">
    DOMAssistant.DOMReady( function() {
        // Use $ and $$ like you always have
    } );
    DOMAssistant.harmonize();
    var divs = DOMAssistant.$('div');
</script>
<script type="text/javascript" src="AnotherLib.js"> </script>

Download

We appreciate if you could report any abnormalities you might find in this beta. Version 2.8 is now closer to release than ever!

Both comments and pings are currently closed.

3 Responses to “DOMAssistant 2.8 hits beta 3”

  1. CROS says:

    Awesome! Great idea with the Harmonize function. Really glad that DOMAssistant is still going. =D

  2. [...] DOMAssistant 2.8 introduces event delegation since beta 1, via the methods relayEvent() and unrelayEvent(). Event delegation relies on the bubbling characteristics of events, which, unsurprisingly, do not behave consistently across browsers. Beta 1 ensures support for ‘focus’ and ‘blur’; beta 4 takes it a step further by providing support for traditionally non-bubbly form events on IE – ’submit’, ‘reset’, ‘change’ and ’select’. Special thanks to Greg Reimer for inspiration of the technique.Changes since beta 3: [...]