File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -728,7 +728,7 @@ function PercentageToken() {
728
728
PercentageToken . prototype = Object . create ( CSSParserToken . prototype ) ;
729
729
PercentageToken . prototype . tokenType = "PERCENTAGE" ;
730
730
PercentageToken . prototype . toString = function ( ) { return "PERCENTAGE(" + this . value + ")" ; }
731
- NumberToken . prototype . toJSON = function ( ) {
731
+ PercentageToken . prototype . toJSON = function ( ) {
732
732
var json = this . constructor . prototype . constructor . prototype . toJSON . call ( this ) ;
733
733
json . value = this . value ;
734
734
json . repr = this . repr ;
@@ -744,7 +744,7 @@ function DimensionToken() {
744
744
DimensionToken . prototype = Object . create ( CSSParserToken . prototype ) ;
745
745
DimensionToken . prototype . tokenType = "DIMENSION" ;
746
746
DimensionToken . prototype . toString = function ( ) { return "DIM(" + this . value + "," + this . unit + ")" ; }
747
- NumberToken . prototype . toJSON = function ( ) {
747
+ DimensionToken . prototype . toJSON = function ( ) {
748
748
var json = this . constructor . prototype . constructor . prototype . toJSON . call ( this ) ;
749
749
json . value = this . value ;
750
750
json . type = this . type ;
You can’t perform that action at this time.
0 commit comments