Pad number to 2 characters.
Config class which can be instantiated. It will create an isolated set of configuration options. It can be extended and read.
Read the current configuration or a configuration entry
Extends the current configuration.
When instantiated, it creates an isolated event collection. These events can be handled and triggered using the resulted object.
Registers a new event handler to a specified event which will be called each time the event is triggered.
Registers a new event handler to a specified event which will be called only the first time the event is triggered.
Queues off process(es) for the event(s).
Queues a trigger process for the event.
This submodule is meant to generate a callback only when all functions provided finished their execution. This is achieved by passing a callback as parameter to the functions that are executed.
The actual function which does the jsonp.
Data object transformation into query string.
Returns the numeric representation of a string level.
Enables the logging.
Disables the logging.
Sets the minimum level of log that is considered.
Merges two or more objects into a single object. It either overrides if the key is the same, or appends to the existing object. The first parameter is the destination, all the other parameters are the sources. The level of importance increases starting from the destination to the last source (the last source will be the most important).
The actual function which does the script loading.
This is a generic wrapper around storage (either localStorage or sessionStorage) which helps storing multiple types of values (not just strings).
Sets an item.
Reads the item stored with the key. The stored value is unserialized.
Checks if there's an entry for the key.
Removes the entry that is stored with the key.
Clears all entries.
Check if the cookies which shows that a user is possibly logged in are set.
Reads the user's session identifier.
Levels of logs.
Default level is warn.
By default it is not enabled.
Function which returns a corresponding wrapper around the native console object. If the console exists, it wraps around it. If it doesn't support calling as a wrapper, it calls directly by stringifying the objects. If the corresponding function of console doesn't exist (e.g. console.debug in IE8), it automatically falls back to the widely available console.log
logger.debug, logger function for the debug level.
logger.log, logger function for the log level.
logger.info, logger function for the info level.
logger.warn, logger function for the warn level.
logger.error, logger function for the error level.
Reference to the <head> DOM object
Is storage supported?
Returns the native storage object.
Converts a date in any format to a timestamp in milliseconds.
Converts a date in any format to a JS Date Object.
Shim of Date.toISOString JS function for older browsers. Converts a date to the ISO format.
Local object of the configuration.
Isolated set of events.
Helper function to get the index of the handler from the array of handlers attached to an event.
Removes event handler(s). If there's no parameters, all event handlers are removed. If only the event is specified, all event handlers are removed from that event handler. If an event handler is specified as well, only that specific event handler will be removed.
Triggers an event which causes the call of each handler attached.
Exports the above defined utility functions.