Skip to content

Commit 88b7d06

Browse files
committed
Give the right name to Function.toJSON
1 parent cf123a3 commit 88b7d06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ function Function(name) {
341341
}
342342
Function.prototype = new CSSParserRule;
343343
Function.prototype.ruleType = "FUNCTION";
344-
FunctionArg.prototype.toJSON = function() {
344+
Function.prototype.toJSON = function() {
345345
return {type:'func', name:this.name, value:this.value.map(function(e){return e.toJSON();})};
346346
}
347347

@@ -353,4 +353,4 @@ FunctionArg.prototype = new CSSParserRule;
353353
FunctionArg.prototype.ruleType = "FUNCTION-ARG";
354354
FunctionArg.prototype.toJSON = function() {
355355
return this.value.map(function(e){return e.toJSON();});
356-
}
356+
}

0 commit comments

Comments
 (0)