Latest Version: 2.0 RC 3 14 March 2017

Reference Index

Master Objects

The following objects are created by the elementals.js library. Some of these are aliases to longer named objects that as developers we call all the time and are simply provided to save a few bytes and some typing.

Object _
The "_" object is the core elementals object through which the majority of new functionality is accessed. This includes things like AJAX handling, event helpers, element creation, and NodeType mask constants.
Click here for Full Reference
Object _w
An alias of window.
Object _d
An alias of document.

Node Masking

Many Elementals fuctions allow you to mask the results based on a Element.tagName or a nodeMask. For more information on this see the _.nodeMask function, and the Node Masking page.

Object Extensions

In addition to the above objects, many existing JavaScript objects are extended by elementals to provide ECMASCript 262-5 functionality. In the future further ECMAScript polyfills may be added. Many of these polyfills are needed as recently as IE 11!

Other Polyfills

The document object will have document.head added to it if the browser does not provide this reference natively.

JSON is also partly implemented in the form of JSON.parse and JSON.stringify. Beware that the parser is a simple eval() fallback, so use with caution.

performance is partly polyfilled in the form of performance.now. No other aspects of it have been fixed.

Window.requestAnimationFrame and Window.cancelAnimationFrame are both polyfilled to use the browser specific versions if available, and otherwise to fall back upon setInterval. Just beware that in a lot of browsers setInterval maxes out at around 30fps, so keep an eye on that timer value your frame will be fed!

More Information