Class Index | File Index

Classes


Namespace Jelo

Core utilities and functions.
Defined in: Jelo.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
Jelo.css()
Convenience method.
<static>  
Jelo.delegate(fn, scope)
Binds arguments to a function and optional scope.
<static>  
Jelo.dragCheckbox(root)
Allows you to check or uncheck a group of checkboxes by clicking and dragging across them (or their labels).
<static>  
Jelo.each(collection, fn, scope)
Performs a function on each item in a collection.
<static>  
Jelo.emptyFn()
A reusable no-operation function.
<static>  
Jelo.on()
Alias for Jelo.Event.add.
<static>  
Jelo.onReady()
<static>  
Jelo.uID()
Can be used to create unique IDs or global counters.
<static>  
Jelo.un()
Namespace Detail
Jelo
Method Detail
<static> Jelo.css()
Convenience method. If two arguments are supplied, this is shorthand for Jelo.CSS.getStyle. If three arguments are supplied, this is shorthand for Jelo.CSS.setStyle.
Defined in: Jelo.CSS.js.

<static> {Function} Jelo.delegate(fn, scope)
Binds arguments to a function and optional scope.
Parameters:
{Function} fn
The function to execute when the delegate is called.
{Object} scope Optional, Default: window
The scope in which to execute the chosen function.
{Mixed} ... Optional
Additional parameters to pass to the function
Returns:
{Function} The new function reference.

<static> Jelo.dragCheckbox(root)
Allows you to check or uncheck a group of checkboxes by clicking and dragging across them (or their labels).
Parameters:
{HTMLElement} root Optional, Default: document
The element within which to apply "drag toggle" functionality.

<static> Jelo.each(collection, fn, scope)
Performs a function on each item in a collection. If the first argument is not an array or object, the function is called once with it. If the function ever returns false, execution halts immediately and the "failed" index is returned. Normally, Jelo.each will return null.
Parameters:
{Array|NodeList|Object} collection
The object over which to iterate.
{Function} fn
The function to execute for each item in the collection. Arguments passed to the function will be the item, its index, and the complete array. For example, myFunc(collection[index], index, collection)
{Object} scope Optional
The scope ("this") in which to execute the function. By default, the scope will be the current item being iterated across.

<static> Jelo.emptyFn()
A reusable no-operation function. Useful for placeholders.

<static> Jelo.on()
Alias for Jelo.Event.add.
Defined in: Jelo.Event.js.

<static> Jelo.onReady()
Alias for Jelo.Event.onReady.
Defined in: Jelo.Event.js.

<static> {Number} Jelo.uID()
Can be used to create unique IDs or global counters. Every time this function is called, a number will be returned which is 1 greater than the number previously returned.
Returns:
{Number} A unique (to this function), autoincrementing positive integer. The first number returned is 1.

<static> Jelo.un()
Alias for Jelo.Event.remove.
Defined in: Jelo.Event.js.

Documentation generated by JsDoc Toolkit 2.1.0 on Mon Mar 15 2010 14:48:20 GMT-0700 (PDT)