| A | |
| addCSS, DOMUtility | |
| addCSSHover, DOMUtility | |
| ascendEvent | |
| C | |
| collect, Dictionary | |
| constructor, Dictionary | |
| D | |
| defer, DOMUtility | |
| E | |
| encode, Json | |
| encodeArray, Json | |
| encodeBoolean, Json | |
| encodeFunction, Json | |
| encodeNull, Json | |
| encodeNumber, Json | |
| encodeObject, Json | |
| encodeString, Json | |
| encodeUndefined, Json | |
| F | |
| fill, String | |
| findInUpstream, DOMUtility | |
| G | |
| get, Dictionary | |
| getAmericanTimeString, Date | |
| getKeys, Dictionary | |
| getMajorVersion, BrowserUtility | |
| getMonthName, Date | |
| getShortMonthName, Date | |
| getUTCAmericanTimeString, Date | |
| getUTCMonthName, Date | |
| getUTCShortMonthName, Date | |
| I | |
| isActiveXComatible, BrowserUtility | |
| isDOMNode, DOMUtility | |
| isIE, BrowserUtility | |
| isIE7, BrowserUtility | |
| isMac, BrowserUtility | |
| isMozilla, BrowserUtility | |
| isNS4, BrowserUtility | |
| isNsPluginCompatible, BrowserUtility | |
| isNumeric, Number | |
| isOpera, BrowserUtility | |
| isSafari, BrowserUtility | |
| isUnix, BrowserUtility | |
| isWindows, BrowserUtility | |
| P | |
| padding, String | |
| perform | |
| R | |
| receiveEvent | |
| register | |
| remove, Dictionary | |
| removeAllChildren, DOMUtility | |
| removeCSS, DOMUtility | |
| removeCSSHover, DOMUtility | |
| reverse, String | |
| S | |
| scope | |
| set, Dictionary | |
| Singleton | |
| T | |
| trim, String | |
| V | |
| vacuum, Array | |
| W | |
| waitUntilImgLoaded, DOMUtility | |
| waitUntilVariable, DOMUtility |
Add css safely.
DOMUtility.addCSS = function ( elm, name, regex )
Shortcut for addCSS with css name “hover”
DOMUtility.addCSSHover = function ( elm )
if the given elm has event, will perform, otherwise ascend DOM tree recursively.
EventRunner.ascendEvent = function ( ev, elm, counter )
return an array contains all values inside this dictionary instance associated with the given keys.
this.collect = function ( keyList )
[FIX ME] not completely done yet.
DOMUtility.defer = function ( targets, func )
Dispatcher method for every JSON serialization.
Json.encode = function ( obj )
Encode array into JSON String.
Json.encodeArray = function ( obj )
Encode boolean into JSON String.
Json.encodeBoolean = function ( obj )
[FIX ME] Encode function into JSON String.
Json.encodeFunction = function ( obj )
Encode null into JSON String.
Json.encodeNull = function ( obj )
Encode number into JSON String.
Json.encodeNumber = function ( obj )
Encode object into JSON String.
Json.encodeObject = function ( obj )
Encode string into JSON String.
Json.encodeString = function ( obj )
Encode undefined into JSON String.
Json.encodeUndefined = function ( obj )
Repeat chunk of sting.
String.fill = function ( filler, len )
Find a DOMNode on upstream side (parent side) by the given criteria.
DOMUtility.findInUpstream = function ( dom, obj )
get a value associated by the given key ahead.
this.get = function ( key )
[FIX ME] Utility method that makes typical American way of writing time.
Date.getAmericanTimeString = function ( obj )
return an array contains all keys inside this dictionary instance.
this.getKeys = function ( key )
FIX ME Detect Browser
BrowserUtility.getMajorVersion = function ()
Utility methods that connects an instance of Date Object and an Array of Name of month in any language.
Date.getMonthName = function ( obj, arr, length, isUTC )
Shortcut for getMonthName with requiring length as 3.
Date.getShortMonthName = function ( obj, arr )
[FIX ME] Utility method that makes typical American way of writing time with UTC Time.
Date.getUTCAmericanTimeString = function ( obj )
Shortcut for getMonthName with requiring UTC time.
Date.getUTCMonthName = function ( obj, arr, length )
Shortcut for getMonthName with requiring length as 3 and UTC time.
Date.getUTCShortMonthName = function ( obj, arr )
FIX ME Detect Browser
BrowserUtility.isActiveXComatible = function ()
Detetect DOM Element or not.
DOMUtility.isDOMNode = function ( obj )
Detect Internet Explorer [after version 4]
BrowserUtility.isIE = function ()
FIX ME Detect Browser
BrowserUtility.isIE7 = function ()
FIX ME Detect Browser
BrowserUtility.isMac = function ()
FIX ME Detect Browser
BrowserUtility.isMozilla = function ()
FIX ME Detect Browser
BrowserUtility.isNS4 = function ()
FIX ME Detect Browser
BrowserUtility.isNsPluginCompatible = function ()
detect whether numeric value or not.
Number.isNumeric = function ( arg )
FIX ME Detect Browser
BrowserUtility.isOpera = function ()
FIX ME Detect Browser
BrowserUtility.isSafari = function ()
FIX ME Detect Browser
BrowserUtility.isUnix = function ()
FIX ME Detect Browser
BrowserUtility.isWindows = function ()
Align length of string.
String.padding = function ( hay, len, filler, dirc )
Thie will execute the method or return values which are associated with the given element and event.
EventRunner.perform = function ( elm, ev )
If currentTarget is propery set (in Firefox and Safari), will execute the method right away, if not (in IE) will ascend DOMNode recursively.
EventRunner.receiveEvent = function ( ev )
Wrapping event dispatching into EventRunner framwork.
EventRunner.register = function ( dom, type, func, context )
destructive get().
this.remove = function ( key )
Remove all child nodes.
DOMUtility.removeAllChildren = function ( parent )
[FIX ME] It there are multiple name added on the element, it should remove everything.
DOMUtility.removeCSS = function ( elm, name, regex )
Shortcut for removeCSS with css name “hover”
DOMUtility.removeCSSHover = function ( elm )
Reverse the order of given string.
String.reverse = function ( str )
will return fixed context for given function.
EventRunner.scope = function ( target, func )
Set a key-value pair to a dictionary instance
this.set = function ( key, value )
This function will transform any given function into singleton pattern
var Singleton = function ( str )
Trim empty characters on both side.
String.trim = function ( str )
Clean up array non-destractively.
Array.prototype.vacuum = function ()
Fires function after the given DOM Element img is ready.
DOMUtility.waitUntilImgLoaded = function ( elmImg, callback )
Fires function after the given name is ready on global scope.
DOMUtility.waitUntilVariable = function ( word, callback )