@@ -3124,7 +3124,7 @@ tree.Expression.prototype = {
3124
3124
if ( inParenthesis ) {
3125
3125
env . outOfParenthesis ( ) ;
3126
3126
}
3127
- if ( this . parens && this . parensInOp && ! ( env . isMathsOn ( ) ) && ! doubleParen ) {
3127
+ if ( this . parens && this . parensInOp && ! ( env . isMathOn ( ) ) && ! doubleParen ) {
3128
3128
returnValue = new ( tree . Paren ) ( returnValue ) ;
3129
3129
}
3130
3130
return returnValue ;
@@ -3392,17 +3392,17 @@ tree.Media.prototype = {
3392
3392
this . ruleset . debugInfo = this . debugInfo ;
3393
3393
media . debugInfo = this . debugInfo ;
3394
3394
}
3395
- var strictMathsBypass = false ;
3396
- if ( env . strictMaths === false ) {
3397
- strictMathsBypass = true ;
3398
- env . strictMaths = true ;
3395
+ var strictMathBypass = false ;
3396
+ if ( ! env . strictMath ) {
3397
+ strictMathBypass = true ;
3398
+ env . strictMath = true ;
3399
3399
}
3400
3400
try {
3401
3401
media . features = this . features . eval ( env ) ;
3402
3402
}
3403
3403
finally {
3404
- if ( strictMathsBypass ) {
3405
- env . strictMaths = false ;
3404
+ if ( strictMathBypass ) {
3405
+ env . strictMath = false ;
3406
3406
}
3407
3407
}
3408
3408
@@ -3742,7 +3742,7 @@ tree.Negative.prototype = {
3742
3742
return '-' + this . value . toCSS ( env ) ;
3743
3743
} ,
3744
3744
eval : function ( env ) {
3745
- if ( env . isMathsOn ( ) ) {
3745
+ if ( env . isMathOn ( ) ) {
3746
3746
return ( new ( tree . Operation ) ( '*' , [ new ( tree . Dimension ) ( - 1 ) , this . value ] ) ) . eval ( env ) ;
3747
3747
}
3748
3748
return new ( tree . Negative ) ( this . value . eval ( env ) ) ;
@@ -3767,7 +3767,7 @@ tree.Operation.prototype = {
3767
3767
b = this . operands [ 1 ] . eval ( env ) ,
3768
3768
temp ;
3769
3769
3770
- if ( env . isMathsOn ( ) ) {
3770
+ if ( env . isMathOn ( ) ) {
3771
3771
if ( a instanceof tree . Dimension && b instanceof tree . Color ) {
3772
3772
if ( this . op === '*' || this . op === '+' ) {
3773
3773
temp = b , b = a , a = temp ;
@@ -3903,10 +3903,10 @@ tree.Rule.prototype = {
3903
3903
}
3904
3904
} ,
3905
3905
eval : function ( env ) {
3906
- var strictMathsBypass = false ;
3907
- if ( this . name === "font" && env . strictMaths === false ) {
3908
- strictMathsBypass = true ;
3909
- env . strictMaths = true ;
3906
+ var strictMathBypass = false ;
3907
+ if ( this . name === "font" && env . strictMath === false ) {
3908
+ strictMathBypass = true ;
3909
+ env . strictMath = true ;
3910
3910
}
3911
3911
try {
3912
3912
return new ( tree . Rule ) ( this . name ,
@@ -3915,8 +3915,8 @@ tree.Rule.prototype = {
3915
3915
this . index , this . currentFileInfo , this . inline ) ;
3916
3916
}
3917
3917
finally {
3918
- if ( strictMathsBypass ) {
3919
- env . strictMaths = false ;
3918
+ if ( strictMathBypass ) {
3919
+ env . strictMath = false ;
3920
3920
}
3921
3921
}
3922
3922
} ,
@@ -4646,7 +4646,7 @@ tree.jsify = function (obj) {
4646
4646
'verbose' , // whether to log more activity
4647
4647
'compress' , // whether to compress
4648
4648
'ieCompat' , // whether to enforce IE compatibility (IE8 data-uri)
4649
- 'strictMaths ' , // whether maths has to be within parenthesis
4649
+ 'strictMath ' , // whether math has to be within parenthesis
4650
4650
'strictUnits' // whether units need to evaluate correctly
4651
4651
] ;
4652
4652
@@ -4667,8 +4667,8 @@ tree.jsify = function (obj) {
4667
4667
this . parensStack . pop ( ) ;
4668
4668
} ;
4669
4669
4670
- tree . evalEnv . prototype . isMathsOn = function ( ) {
4671
- return this . strictMaths === false ? true : ( this . parensStack && this . parensStack . length ) ;
4670
+ tree . evalEnv . prototype . isMathOn = function ( ) {
4671
+ return this . strictMath ? ( this . parensStack && this . parensStack . length ) : true ;
4672
4672
} ;
4673
4673
4674
4674
tree . evalEnv . prototype . isPathRelative = function ( path ) {
0 commit comments