Simple bug fixing.
This commit is contained in:
@@ -20,28 +20,6 @@ core.Utils = {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* http://kevlindev.com/tutorials/javascript/inheritance/index.htm
|
||||
* A function used to extend one class with another
|
||||
*
|
||||
* @param {Object} subClass
|
||||
* The inheriting class, or subclass
|
||||
* @param {Object} baseClass
|
||||
* The class from which to inherit
|
||||
*/
|
||||
objects = {};
|
||||
objects.extend = function(subClass, baseClass) {
|
||||
function inheritance() {
|
||||
}
|
||||
|
||||
inheritance.prototype = baseClass.prototype;
|
||||
|
||||
subClass.prototype = new inheritance();
|
||||
subClass.prototype.constructor = subClass;
|
||||
subClass.baseConstructor = baseClass;
|
||||
subClass.superClass = baseClass.prototype;
|
||||
};
|
||||
|
||||
Math.sign = function(value) {
|
||||
return (value >= 0) ? 1 : -1;
|
||||
};
|
||||
|
Reference in New Issue
Block a user