Skip to content

Commit

Permalink
Merge pull request #30 from markuplab/patch-1
Browse files Browse the repository at this point in the history
Fix init cache position
  • Loading branch information
Pavliko committed Apr 19, 2016
2 parents 488858f + 225deed commit 15d29c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ module.exports = postcss.plugin "postcss-svg", (options = {}) ->
silent = if _.isBoolean(options.silent) then options.silent else true
silent = false if options.debug

(style, result) ->
SVGCache.init(options)
SVGCache.init(options)

(style, result) ->
style.walkDecls /^background|^filter|^content|image$/, (decl) ->
return unless decl.value
while matches = SVGRegExp.exec(decl.value.replace(/'/g, '"'))
Expand Down

0 comments on commit 15d29c7

Please sign in to comment.