Skip to content

Commit

Permalink
thx for breaking spec, ie9
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Mar 16, 2010
1 parent 4260f08 commit 027dced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ window.Modernizr = (function(window,doc,undefined){
* contains returns a boolean for if substr is found within str.
*/
function contains( str, substr ) {
return str.indexOf( substr ) !== -1;
return (''+str).indexOf( substr ) !== -1;
}

/**
Expand Down Expand Up @@ -723,7 +723,7 @@ window.Modernizr = (function(window,doc,undefined){





/**
* Addtest allows the user to define their own feature tests
Expand Down

0 comments on commit 027dced

Please sign in to comment.