From 3bc209c9fa9b0e762ab5a6f3e7cf86d8b7a5498b Mon Sep 17 00:00:00 2001 From: Furkan Poyraz Date: Sun, 6 Sep 2015 12:53:30 +0200 Subject: [PATCH] Changed eachDecl to walkDecls eachDecl is deprecated in postcss 5.0 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 83cf8c9..1e5fab2 100755 --- a/index.js +++ b/index.js @@ -11,7 +11,7 @@ var helpers = require("postcss-message-helpers") */ module.exports = postcss.plugin("postcss-color-function", function() { return function(style) { - style.eachDecl(function transformDecl(decl) { + style.walkDecls(function transformDecl(decl) { if (!decl.value || decl.value.indexOf("color(") === -1) { return }