[Prototype-core] Re: alert('a href=javascript:alert(\'\')test/a'.stripTags());

2009-04-24 Thread Yaffle

String#prototype#split Great Fix

http://blog.stevenlevithan.com/archives/cross-browser-split


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~--~~~~--~~--~--~---



[Prototype-core] Array.prototype.push.apply and update used by Function.prototype.bind

2009-04-24 Thread Yaffle

  function update(array, args) {
var arrayLength = array.length, length = args.length;
while (length--) array[arrayLength + length] = args[length];
return array;
  }

Array.prototype.push.apply(array,args) == update(array,args) ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~--~~~~--~~--~--~---