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:
- 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> ready( [target])
-
Clears the loading splash screen
Parameters:
Name Type Argument Default Description targetjQuery <optional>
body Target elements
-
<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