Skip to content

Commit

Permalink
Less string concatenation
Browse files Browse the repository at this point in the history
This moves the "left top" down one line as suggested.
  • Loading branch information
TRowbotham committed Aug 2, 2015
1 parent 177dc99 commit d405a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feature-detects/css/gradients.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ define(['Modernizr', 'prefixes', 'createElement'], function(Modernizr, prefixes,
var angle;

for (var i = 0, len = prefixes.length - 1; i < len; i++) {
angle = (i === 0 ? 'to ' : '') + 'left top';
css += str1 + prefixes[i] + 'linear-gradient(' + angle + ', #9f9, white);';
angle = (i === 0 ? 'to ' : '');
css += str1 + prefixes[i] + 'linear-gradient(' + angle + 'left top, #9f9, white);';
}

if (Modernizr._config.usePrefixes) {
Expand Down

0 comments on commit d405a71

Please sign in to comment.