Skip to content

Commit c4ed68c

Browse files
Removing extra _this, adding clarifying whitespace.
1 parent bb61aa3 commit c4ed68c

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

lib/csscomb.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,25 @@ Comb.prototype = {
7676
* @param {Number} level Indent level
7777
*/
7878
processNode: function(node, level) {
79-
var _this = this;
8079
node.forEach(function(node) {
8180
if (!Array.isArray(node)) return;
81+
8282
var nodeType = node.shift();
83-
_this._handlers.forEach(function(handler) {
83+
this._handlers.forEach(function(handler) {
8484
handler.process(nodeType, node, level);
8585
});
8686
node.unshift(nodeType);
87+
8788
if (nodeType === 'atrulers') level++;
88-
_this.processNode(node, level);
89-
});
89+
90+
this.processNode(node, level);
91+
}, this);
9092
},
9193

9294
/**
9395
* Process file provided with a string.
9496
* @param {String} text
95-
* @param {String} filename
97+
* @param {String} [filename]
9698
*/
9799
processString: function(text, filename) {
98100
if (!text) return text;

0 commit comments

Comments
 (0)