/DOMBlaster

A minimal, jQuery-like library for browser JavaScript for DOM querying and manipulation. Easily extensible.

Primary LanguageJavaScriptMIT LicenseMIT

DOMBlaster

Copyright (c) 2018 Matt Tropiano. All rights reserved.

Notice

This README's Documentation is totally incomplete. Sorry.

Before a "v1.0" is set, the contents of this API is subject to change between commits. Use caution!

Introduction

DOMBlaster is a minimal, jQuery-like library for browser JavaScript for DOM querying and manipulation.

A simple query can look like:

$D('body');

Which returns a DOMBlasterGroup result of the document query.

The $D symbol is the shorthand symbol to DOMBlaster created when domblaster.js is included. This is completely equivalent to the previous block of code:

DOMBlaster('body');

If $D got replaced and you wish to restore it, you can restore the previous value of $D at the time of DOMBlaster's inclusion with:

DOMBlaster.noConflict();

Documentation

Parameters enclosed in [] are optional.

Main Calls

DOMBlaster ( selector, [one] )

DOMBlaster.id ( id )

DOMBlaster.tag ( tag )

DOMBlaster.name ( name )

DOMBlaster.className ( className )

DOMBlaster.extend ( name, function )

DOMBlaster.extendGroup ( name, function )

DOMBlaster.noConflict ( )

Restores the previous assigning of $D on the global context.

DOMBlasterGroup Prototype

.each ( function )

.get ( index )

.gather ( function )

.matches ( selector )

.search ( selector )

Utility

DOMBlaster.isUndefined ( object )

DOMBlaster.isNull ( object )

DOMBlaster.isType ( object )

DOMBlaster.isNumber ( object )

DOMBlaster.isString ( object )

DOMBlaster.isArray ( object )

DOMBlaster.isFunction ( object )

DOMBlaster.isObject ( object )

DOMBlaster.isBlank ( object )

DOMBlaster.each ( object, function )

DOMBlaster.merge ( object, object )

DOMBlaster.makeClassMap ( className )

DOMBlaster.mergeClassMap ( object )

DOMBlaster.nanoTime ( )

DOMBlaster.matches ( elem, selector )

Licensing

This program and the accompanying materials are made available under the terms of the MIT License.