Class.js | |
Constructor | |
ALKMaps. | Base class used to construct all other classes. |
Functions | |
ALKMaps. | |
extend | Copy all properties of a source object to a destination object. |
Base class used to construct all other classes. Includes support for multiple inheritance.
var MyClass = ALKMaps.Class(prototype);
To create a new ALKMaps-style class with multiple inheritance, use the following syntax:
var MyClass = ALKMaps.Class(Class1, Class2, prototype);
Note that instanceof reflection will only reveal Class1 as superclass.
Copy all properties of a source object to a destination object. Modifies the passed in destination object. Any properties on the source object that are set to undefined will not be (re)set on the destination object.
destination | {Object} The object that will be modified |
source | {Object} The object with properties to be set on the destination |
{Object} The destination object.
ALKMaps.inherit = function( C, P )