You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
radium/core.js

26 lines
567 B
JavaScript

/* Thanks to http://phrogz.net/js/classes/OOPinJS2.html */
Function.prototype.inheritsFrom = function(parentObject)
{
if(parentClassOrObject.constructor == Function)
{
/* Normal Inheritance */
this.prototype = new parentObject;
this.prototype.constructor = this;
this.prototype.parent = parentObject.prototype;
}
else
{
/* Pure Virtual Inheritance */
this.prototype = parentObject;
this.prototype.constructor = this;
this.prototype.parent = parentObject;
}
return this;
}
/*Class*/ RadiumEngine = function()
{
this.version = "1.0";
}