[Javascript] Firefox Prototyping -or does it?!
Troy III Ajnej
trojani2000 at hotmail.com
Fri Mar 30 18:41:41 CDT 2012
Do you have a copy of Firefox installed on your system?
(There's your reference) !
p.s.:
You can try this:
String.prototype.Normalize=
/*b.b Troy III p.a.e*/
function(x){return(x||this).match(/\S+/gi).join(' ')};
var str = " this string has to many spaces ";
str.Normalize();
Attention: don't use the console, it will lie.
Use a real document.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Troy III
progressive art enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Javascript
mailing list