Skip to content

Commit 05c3ef4

Browse files
committed
typo
1 parent 8a2f841 commit 05c3ef4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parse-css.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ function PercentageToken() {
728728
PercentageToken.prototype = Object.create(CSSParserToken.prototype);
729729
PercentageToken.prototype.tokenType = "PERCENTAGE";
730730
PercentageToken.prototype.toString = function() { return "PERCENTAGE("+this.value+")"; }
731-
NumberToken.prototype.toJSON = function() {
731+
PercentageToken.prototype.toJSON = function() {
732732
var json = this.constructor.prototype.constructor.prototype.toJSON.call(this);
733733
json.value = this.value;
734734
json.repr = this.repr;
@@ -744,7 +744,7 @@ function DimensionToken() {
744744
DimensionToken.prototype = Object.create(CSSParserToken.prototype);
745745
DimensionToken.prototype.tokenType = "DIMENSION";
746746
DimensionToken.prototype.toString = function() { return "DIM("+this.value+","+this.unit+")"; }
747-
NumberToken.prototype.toJSON = function() {
747+
DimensionToken.prototype.toJSON = function() {
748748
var json = this.constructor.prototype.constructor.prototype.toJSON.call(this);
749749
json.value = this.value;
750750
json.type = this.type;

0 commit comments

Comments
 (0)