Members
-
<static, constant> proj4 :proj4
-
A proj4 instnce with NYC coordinate systems defined
Type:
- proj4
Methods
-
<static> activeElement()
-
Returns an object describing the element that currently has focus
Returns:
An object containing the element and a boolean indicating if it is a text input
- Type
- Object
-
<static> cacheBust(minutes)
-
Returns a cache bust param for query strings
Parameters:
Name Type Description minutesnumber Minutes
Returns:
Time in milliseconds
- Type
- number
-
<static> capitalize(s)
-
Parameters:
Name Type Description sstring A string
Returns:
Input string with the first letter of each word capitalized
- Type
- string
-
<static> html(object)
-
Parameters:
Name Type Description objectObject An object
Returns:
HTML string
- Type
- jQuery
-
<static> inherits(childCtor, parentCtor)
-
Provide inheritance for function-based classes using prototype
Parameters:
Name Type Description childCtorfunction The constructor of the subclass
parentCtorfunction The constructor of the superclass
-
<static> loading(target)
-
Shows the loading splash screen on eleents with loading class
Parameters:
Name Type Description targetjQuery Target elements
-
<static> mixin(obj, mixins)
-
Provide mixin functionality
Parameters:
Name Type Description objObject The target of the mixins
mixinsArray.<Object> An array of mixin objects - last in wins
-
<static> nextId(prefix)
-
Parameters:
Name Type Description prefixstring An id prefix
Returns:
A unique id
- Type
- string
-
<static> noSpaceBarScroll()
-
Disables scrolling on keypress when user presses the space bar on a button or a link by adding a kepress event handler to the document. The click event is triggered on buttons and links without and href attribute or with an href value of #. If a link has an href the browser will navigate to that location. If a link also has a target attribute the navigation will take place in a new tab.
-
<static> ready( [target])
-
Clears the loading splash screen
Parameters:
Name Type Argument Default Description targetjQuery <optional>
body Target elements
-
<static> removeDups(arr)
-
Returns an array with duplicates removed
Parameters:
Name Type Description arrArray.<string> | Array.<number> An array with possible duplicates
Returns:
An array without duplicates
- Type
- Array.<string> | Array.<number>
-
<static> subclass(childObj, parentObj)
-
Provide for function-based classes to inherit from ES5 and ES6 classes
Parameters:
Name Type Description childObjObject An instance of the subclass
parentObjObject An instance of the superclass