Permalink
Browse files

Fixes #2402 for 1.2. Overwrite String contains with the MooTools vers…

…ion.

Firefox 18 implements .contains, and ES6 might do that as well. That breaks
some stuff, so we have to make sure it's overwritten with the 'correct'
MooTools version.
  • Loading branch information...
1 parent eaf9d3f commit 7057039591e41ae64791a9458f182af1cf7a34db @arian committed Jan 15, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 Source/Native/String.js
@@ -14,6 +14,10 @@ provides: String
...
*/
+try {
+ delete String.prototype.contains;
+} catch(e){}
+
String.implement({
test: function(regex, params){

0 comments on commit 7057039

Please sign in to comment.