Class Index | File Index

Classes


Namespace Util


Defined in: Util.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
Util.addCommas(nStr)
<static>  
Util.assembleLocString(loc_in)
<static>  
Util.debugHandler(context, func)
Wrap a handler function to be called 1ms later in a window timeout.
<static>  
Util.deepUpdate(a, b)
updates a with values from b, recursively
<static>  
Util.fillTemplate(template, fillWith)
replace variables in a template string with values
<static>  
Util.findNearest(numArray, num)
<static>  
<static>  
<static>  
Util.isRightButton(e)
<static>  
Util.matchRefSeqName(name, refseqs)
<static>  
Util.maybeLoad(dojoXhrArgs, stateObj, successCallback, errorCallback)
function to load a specified resource only once
<static>  
Does a (deep) crc32 of any object.
<static>  
Util.parseLocString(locstring)
<static>  
Util.resolveUrl(baseUrl, relativeUrl)
<static>  
Util.ucFirst(str)
<static>  
Util.uniq(stuff, normalizer)
Uniqify an array.
<static>  
Util.wheel(event)
Namespace Detail
Util
Method Detail
<static> Util.addCommas(nStr)
Parameters:
nStr

<static> Util.assembleLocString(loc_in)
Parameters:
loc_in

<static> Util.debugHandler(context, func)
Wrap a handler function to be called 1ms later in a window timeout. This will usually give a better stack trace for figuring out where errors are happening.
Parameters:
context
func

<static> Util.deepUpdate(a, b)
updates a with values from b, recursively
Parameters:
a
b

<static> Util.fillTemplate(template, fillWith)
replace variables in a template string with values
Parameters:
template
String with variable names in curly brackets e.g., "http://foo/{bar}?arg={baz}
fillWith
object with attribute-value mappings e.g., {'bar': 'someurl', 'baz': 'valueforbaz'}
Returns:
the template string with variables in fillWith replaced e.g., 'htp://foo/someurl?arg=valueforbaz'

<static> Util.findNearest(numArray, num)
Parameters:
numArray
num

<static> Util.getViewportHeight()

<static> Util.getViewportWidth()

<static> Util.isRightButton(e)
Parameters:
e

<static> Util.matchRefSeqName(name, refseqs)
Parameters:
name
refseqs

<static> Util.maybeLoad(dojoXhrArgs, stateObj, successCallback, errorCallback)
function to load a specified resource only once
Parameters:
{Object} dojoXhrArgs
object containing arguments for dojo.xhrGet, like url and handleAs
{Object} stateObj
object that stores the state of the load
{Function} successCallback
function to call on a successful load
{Function} errorCallback
function to call on an unsuccessful load

<static> {Number} Util.objectFingerprint(obj)
Does a (deep) crc32 of any object.
Parameters:
obj
Returns:
{Number}

<static> Util.parseLocString(locstring)
Parameters:
locstring

<static> Util.resolveUrl(baseUrl, relativeUrl)
Parameters:
baseUrl
relativeUrl

<static> Util.ucFirst(str)
Parameters:
str

<static> Util.uniq(stuff, normalizer)
Uniqify an array.
Parameters:
stuff
{Array} array of stuff
normalizer
{Function} optional function to be called on each element. by default, just compares by stringification

<static> Util.wheel(event)
Parameters:
event

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jun 14 2012 17:43:46 GMT-0400 (EDT)