core Class
The main module and namespace used within the core framework.
Methods
_import
-
package
Utility method for referencing objects within the core framework. This also adds existence checking for the objects being referenced on import.
Parameters:
-
package
StringThe namespace of the object being imported.
Returns:
Object The object being imported
dependency
-
object
-
message
Utility method for performing dependency checks on core classes.
Parameters:
-
object
StringThe object to check if its defined.
-
message
StringThe message to display on warning when the object passed for checking is undefined.
Returns:
Object The object being imported
guid
()
Utility method for generating GUID. [http://stackoverflow.com/a/873856/820640]
Returns:
String Returns a GUID string
inherits
-
obj
Utility method for implementing prototypal inheritance within the core framework.
Parameters:
-
obj
ObjectThe object where the prototype is going to be derived from.
rect
()
Utility method for getting the bounding rect of the dom element - also adds support for IE8
Returns:
Object Contains the rectangular information of a HTMLElement
registerNamespace
()
Utility method for exposing objects in a namespaced fashion.
Properties
browser
Object
Store browser information based on the detection algorithm implemented within core.
util
Object
Core utility object. Contains useful utility functions.