Skip to content

Commit

Permalink
DRY up some vendor prefix action
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Mar 11, 2010
1 parent 0a9ff1c commit fd7be18
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ window.Modernizr = (function(window,doc,undefined){
// Tests

/**
* Canvas tests in Modernizr 1.0 are still somewhat rudimentary. However,
* Canvas tests in Modernizr 1.x are still somewhat rudimentary. However,
* the added "canvastext" test allows for a slightly more reliable and
* usable setup.
*/
Expand Down Expand Up @@ -418,16 +418,7 @@ window.Modernizr = (function(window,doc,undefined){
str3 = 'linear-gradient(left top,#9f9, white);';

set_css(
str1 + str2
+ str1 + '-webkit-' + str2
+ str1 + '-moz-' + str2
+ str1 + '-o-' + str2
+ str1 + '-ms-' + str2
+ str1 + str3
+ str1 + '-webkit-' + str3
+ str1 + '-moz-' + str3
+ str1 + '-o-' + str3
+ str1 + '-ms-' + str3
(str1 + setProperties.join(str2 + str1) + setProperties.join(str3 + str1)).slice(0,-str1.length)
);

return contains( m_style.backgroundImage, 'gradient' );
Expand Down

0 comments on commit fd7be18

Please sign in to comment.