| Core |
|
Flow (16.69 kb) (4.65 kb) (2.08 kb) |
The Flow namespace, Array Extras, Plugin support, and other goodies.
|
|
Dom (13.98 kb) (4.41 kb) (1.82 kb) |
Enjoy a cross-browser native API. Dom fixes:
- node.getElementsByClassName
- node.getAttribute
- node.setAttribute
- node.hasAttribute
- document.defaultView.getComputedStyle
|
|
Event (8.66 kb) (2.75 kb) (1.34 kb) |
Never again worry about memory leaks. Event automagically garbage-collects any node you remove/replace, and flushes event listeners on unload. In addition, Event brings native API support for:
- node.addEventListener
- node.removeEventListener
- DOMContentLoaded
- event.preventDefault
- event.stopPropagation
- event.target
|
|
Extend (18.34 kb) (4.32 kb) (1.69 kb) |
So the native API is fixed. Still feels a bit underpowered? Extend allows you to chain one function after another, and introduces support for:
- node.addClass
- node.removeClass
- node.replaceClass
- node.hasClass
- node.toggleClass
- node.getElementsByAttribute
- node.insertAfter
- node.getFirstChild
- node.getLastChild
- node.hasChildNode
- node.getChildNodes
- node.removeNode
- node.getText
- node.setText
- node.getComputedStyle
- node.getInnerHTML
- node.setInnerHTML
- document.getPosition
|
| Query |
|
Query (29.74 kb) (10.84 kb) (3.73 kb) |
document.querySelectorAll("#foo > .bar li"); — all hail the Nyman.
|
| Animate |
|
Animate (9.23 kb) (4.30 kb) (1.80 kb) |
A small and powerful animation library.
|
| Class |
|
Class (2.23 kb) (599 b) (333 b) |
A plugin that supports class creation (via John Resig, Dean Edwards).
|
| Cookie |
|
Cookie (1.84 kb) (683 b) (385 b) |
- document.getCookie
- document.setCookie
- document.deleteCookie
|
| Form |
|
Form (4.23 kb) (1.55 kb) (735 b) |
Includes methods for getting the value of any form field and form serialization.
- getValue
- toQueryString
- toJSON
|
| Remote |
|
Remote (13.12 kb) (3.55 kb) (1.50 kb) |
Cross-browser XMLHttpRequest support. Also adds an HttpRequest function for true compatibility and easier Ajax.
- new XMLHttpRequest()
- new HttpRequest()
|
| Require |
|
Require (1.32 kb) (522 b) (304 b) |
Dynamically include scripts on your page. |
| Viewport |
|
Viewport (6.41 kb) (2.03 kb) (878 b) |
Includes dimension reporting, position and popup functions:
- getSize
- getScreenSize
- getOuterSize
- getScrollOffset
- getScrollSize
- getPosition
- getMousePosition
- popup
|