Releases: freeall/dombo
New more low-level interface
The original idea of dombo was to be a thin wrapper on top of the native DOM. And it's now a reality.
$('.foo') now returns an array-like object that also has all the properties of the DOM objects it selected. E.g., both a div and an input element will have an innerHTML property, but only an input element will have a value property.
The returned element will also include all array methods like map/reduce/forEach/etc, the length property and you can index with [0].
3.2.2 release of Dombo
Fixed issue where .toggleClass(nodes, 'someClass') would change all the nodes to the same, depending on whether one of them had 'someClass'. The correct behavior is to look at each node individually.
v3.2.0
3.2.0 release of Dombo
First release of Dombo, a simplified version of jQuery. A lot less responsibility, a little more low-level, and no legacy browser support (works in most browsers, and IE9+).
In the minified version it's 3kb, compared to jQuery's 96kb.
- Selectors. Should work as jQuery,
$('.foo')or$('.somelement', '#inanother') - Event handlers. Include these methods:
on,off,one - ClassName manipulation. Includes these methods:
hasClass,addClass,removeClass,toggleClass