Thursday, February 21st, 2008

DOMAssistant 2.6 Released

Category: JavaScript, Library

DOMAssistant 2.6 has been released and the team focused on performance for this version.

They have their own version of slickspeed which includes their library.

The CSS changes include:

Where querySelectorAll and getElementsByClassName aren’t available, DOMAssistant resorts to XPath to select elements, which is an approach that also has very impressive performance results, not to mention native web browser support. The only web browser not supporting XPath is Internet Explorer, where the only option is “regular” looping through elements.

The new version includes a new plugin architecture and an update of the magic methods:

The $ method

Accepts either a CSS selector or an object reference. E.g. $("#container .external-links"), $(document). Fails silently if you try to call a method when the selector didn’t return any matches; i.e., $("input[type=text]").addClass("text-fields") won’t throw an error trying to call the addClass method, even if the $ selector didn’t match any elements.

Returns: A collection of one or several nodes for CSS selectors/object reference when an object was sent in.

The $$ method

Accepts a string parameter, expected to be the id of an element. E.g. $$("container"), $$("navigation"). Will throw an error if you try to call a method, if there wasn’t any match.

Returns: A direct reference to the DOM element.

Posted by Dion Almaer at 7:55 am
1 Comment

+++--
3.5 rating from 25 votes

1 Comment »

Comments feed TrackBack URI

This is a great release and we are using it for the next level of what we do.
It has really made a huge difference for us, and it has made us look forward to our own next upgrade / release, because of what it has contributed to it.

Comment by Mikael Bergkvist — February 21, 2008

Leave a comment

You must be logged in to post a comment.