Skip to content

Commit

Permalink
Merge pull request #634 from dbaron/master
Browse files Browse the repository at this point in the history
fix the assumption that arguments to testProp (etc.) are strings
  • Loading branch information
paulirish committed Jul 19, 2012
2 parents eeb5ca4 + f017851 commit f6d98dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit f6d98dd

Please sign in to comment.