File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments