Skip to content
Browse files

Merge pull request #634 from dbaron/master

fix the assumption that arguments to testProp (etc.) are strings
  • Loading branch information...
2 parents eeb5ca4 + f017851 commit f6d98dd5b9c932f08725e79c7baf94bf01420b78 @paulirish paulirish committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 modernizr.js
View
2 modernizr.js
@@ -325,7 +325,7 @@ window.Modernizr = (function( window, document, undefined ) {
function testProps( props, prefixed ) {
for ( var i in props ) {
var prop = props[i];
- if ( prop.indexOf("-") == -1 && mStyle[prop] !== undefined ) {
+ if ( !contains(prop, "-") && mStyle[prop] !== undefined ) {
return prefixed == 'pfx' ? prop : true;
}
}

0 comments on commit f6d98dd

Please sign in to comment.
Something went wrong with that request. Please try again.