Skip to content

Commit 4a38cb1

Browse files
committed
remove result
1 parent c19ff8f commit 4a38cb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = postcss.plugin("postcss-custom-selectors", function(options) {
2626
/**
2727
* 读取和替换自定义选择器
2828
*/
29-
return function(styles, result) {
29+
return function(styles) {
3030
// 读取自定义选择器
3131
styles.eachAtRule(function(rule) {
3232
if (rule.name !== "custom-selector") {
@@ -54,7 +54,7 @@ module.exports = postcss.plugin("postcss-custom-selectors", function(options) {
5454
})
5555

5656
// 转换自定义的选择器别名
57-
styles.eachRule(function(rule, result) {
57+
styles.eachRule(function(rule) {
5858
var flag = 0
5959
for (var prop in customSelectors) {
6060
if (rule.selector.indexOf(prop) >= 0) {

0 commit comments

Comments
 (0)