X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Fbetterjs.js;h=41d62235b169b43af4a124d7b8154b9a772a1886;hp=b4d0bb6d4ae929a249aa42263679619e61486e3f;hb=HEAD;hpb=dc70eed10d6eb26660d02fe8b18eebb2836ef9de diff --git a/js/betterjs.js b/js/betterjs.js index b4d0bb6..41d6223 100644 --- a/js/betterjs.js +++ b/js/betterjs.js @@ -72,30 +72,3 @@ String.prototype.ltrim = function() { String.prototype.rtrim = function() { return this.replace(/\s+$/, ""); }; - -/** - * (Not use for the moment) - * See : http://www.coolpage.com/developer/javascript/Correct%20OOP%20for%20Javascript.html - * - * Example : - * - * function Mammal(name) { - * this.name = name; - * } - * - * Cat.Inherits(Mammal); - * function Cat(name) { - * this.Super(Mammal, name); - * } - */ -/*Object.prototype.Super = function(parent) { - if(arguments.length > 1) { - parent.apply( this, Array.prototype.slice.call( arguments, 1 ) ); - } else { - parent.call( this ); - } -} -Function.prototype.Inherits = function(parent) { - this.prototype = new parent(); - this.prototype.constructor = this; -}*/