Permalink
Browse files

Remove the assumption, introduced in c1cdb50, that arguments are stri…

…ngs.
  • Loading branch information...
dbaron committed Jul 19, 2012
1 parent eeb5ca4 commit f0178514ea50d559725b63378e53c1ecb61291b9
Showing with 1 addition and 1 deletion.
  1. +1 −1 modernizr.js
View
@@ -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 f017851

Please sign in to comment.