Skip to content

Commit

Permalink
Fixes mootools#2402 for 1.2. Overwrite String contains with the MooTo…
Browse files Browse the repository at this point in the history
…ols version.

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
arian committed Jan 15, 2013
1 parent eaf9d3f commit 7057039
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Native/String.js
Expand Up @@ -14,6 +14,10 @@ provides: String
... ...
*/ */


try {
delete String.prototype.contains;
} catch(e){}

String.implement({ String.implement({


test: function(regex, params){ test: function(regex, params){
Expand Down

0 comments on commit 7057039

Please sign in to comment.