Skip to content

Commit

Permalink
Manage css prefixes option: grad.js
Browse files Browse the repository at this point in the history
part of fraser-hemp#20 proposal
  • Loading branch information
a-x- committed Aug 19, 2015
1 parent 975259d commit b6d4207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grad.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Grad = function(image, classname, optNumColors) {
var Grad = function(image, classname, optNumColors, browserPrexies) {

this.imageData = this.toImageData(image);

Expand All @@ -18,7 +18,7 @@ var Grad = function(image, classname, optNumColors) {
this.classname = classname;

// Prefixes for grad rules (cross-browser).
this.browserPrexies = ["","-webkit-", "-moz-", "-o-", "-ms-"]
this.browserPrexies = browserPrexies && browserPrexies.split(',').concat(['']) || ["-webkit-", "-moz-", "-o-", "-ms-", ""]

// Safari being difficult and requiring special CSS rules
this.directionMap = {
Expand Down

0 comments on commit b6d4207

Please sign in to comment.