Skip to content

Commit

Permalink
simplified set_css_all
Browse files Browse the repository at this point in the history
  • Loading branch information
fearphage committed Nov 5, 2009
1 parent fe68e0c commit 8fd80d7
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ window.Modernizr = (function(window, doc){
backgroundColor = background + 'Color',
canPlayType = 'canPlayType',

// list of property values to set for css tests
setProperties = ' -o- -moz- -ms- -webkit- '.split(' '),
tests = {},
inputs = {},

Expand Down Expand Up @@ -163,16 +165,7 @@ window.Modernizr = (function(window, doc){
* set_css_all extrapolates all vendor-specific css strings.
*/
function set_css_all( str1, str2 ) {
str1 += ';';

return set_css(
str1
+ '-webkit-' + str1
+ '-moz-' + str1
+ '-o-' + str1
+ '-ms-' + str1
+ ( str2 || '' )
);
return set_css(setProperties.join(str1 + ';') + ( str2 || '' ));
}

/**
Expand Down

0 comments on commit 8fd80d7

Please sign in to comment.