mh5Namespace

Methods

public each(object, fn, context) Loops through an array or object, calling a function for each element.
public extend(target, source) Extends an object by copying source object(s) properties to the target object. Target object properties that match properties in the source object(s) are overwritten, unmatched properties are copied. Note that the method is able to handle undefined source objects gracefully.
public extendDeep(target, source) Does the same what nokia.mh5.extend does but can deal with nested objects
public jsonp(uri, callback, timeoutInMs) Starts a JSONP request to a given URL, the provided callback function will be called with the response of the request. There is a timeout of 10s for JSONP calls.
public require(ns) Synchronously loads a class. After requiring a class you either use it by referencing it using the classes fully qualified name (e.g. nokia.mh5.ui.Control) or using the value returned the the require function itself (nokia.mh5.require('nokia.mh5.ui.Control') === nokia.mh5.ui.Control). See also nokia.mh5.modulePaths which stores the namespace paths.
public resolve(stringRef, startWith) Checks a path reference and returns it if it exists.
public type(obj) Detects whether the argument is of specified type. The method can detect the following types:

'arguments', 'array', 'boolean', 'date', 'function', 'null', 'number', 'object', 'string', 'undefined'

public xhr(options) Start a XMLHttpRequest with the specified options.