Skip to content

Commit

Permalink
Merge pull request #7 from caesar/walkdecls
Browse files Browse the repository at this point in the history
Update deprecated `eachDecl` call to `walkDecls`
  • Loading branch information
Rycochet committed Nov 29, 2016
2 parents ec340b8 + 046a5a0 commit 503d0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -59,7 +59,7 @@ module.exports = postcss.plugin("postcss-epub", function(opts) {
* @param {Object} css
*/
return function(css) {
css.eachDecl(function(decl) {
css.walkDecls(function(decl) {
if (decl.value) {
if (props.indexOf(decl.prop) >= 0) {
decl.parent.insertBefore(decl, decl.clone({
Expand Down

0 comments on commit 503d0f4

Please sign in to comment.