Simple bug fixing.

This commit is contained in:
Paulo Veiga
2011-10-27 21:18:49 -03:00
parent cb7b3a2660
commit cfda92195a
11 changed files with 71 additions and 35 deletions

View File

@@ -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;
};