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>  
Util.parseLocString(locstring)
<static>  
Util.resolveUrl(baseUrl, relativeUrl)
<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> Util.parseLocString(locstring)
Parameters:
locstring

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

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

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Apr 19 2012 17:55:42 GMT-0400 (EDT)