Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Replace eachDecl with each and decl.type check
Browse files Browse the repository at this point in the history
(fix #41)
  • Loading branch information
iamvdo committed Jul 9, 2015
1 parent a41a5a2 commit 9aa8c88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pixrem.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ Pixrem.prototype.postcss = function (css) {

var isPseudoElement = (rule.selector.search(/:(after|before)/gi) !== -1);

rule.eachDecl(function (decl, i) {
rule.each(function (decl, i) {

if (decl.type !== 'decl') { return; }

var value = decl.value;

if (value.indexOf('rem') !== -1) {
Expand Down

0 comments on commit 9aa8c88

Please sign in to comment.