@@ -934,7 +934,7 @@ WOQLQuery.prototype.plus = function (...args) {
934
934
this . cursor [ '@type' ] = 'Plus' ;
935
935
this . cursor . left = this . arop ( args . shift ( ) ) ;
936
936
if ( args . length > 1 ) {
937
- this . cursor . right = this . jobj ( new WOQLQuery ( ) . plus ( ...args ) ) ;
937
+ this . cursor . right = this . jobj ( new WOQLQuery ( ) . plus ( ...args . map ( this . arop ) ) ) ;
938
938
} else {
939
939
this . cursor . right = this . arop ( args [ 0 ] ) ;
940
940
}
@@ -954,7 +954,7 @@ WOQLQuery.prototype.minus = function (...args) {
954
954
this . cursor [ '@type' ] = 'Minus' ;
955
955
this . cursor . left = this . arop ( args . shift ( ) ) ;
956
956
if ( args . length > 1 ) {
957
- this . cursor . right = this . jobj ( new WOQLQuery ( ) . minus ( ...args ) ) ;
957
+ this . cursor . right = this . jobj ( new WOQLQuery ( ) . minus ( ...args . map ( this . arop ) ) ) ;
958
958
} else {
959
959
this . cursor . right = this . arop ( args [ 0 ] ) ;
960
960
}
@@ -973,7 +973,7 @@ WOQLQuery.prototype.times = function (...args) {
973
973
this . cursor [ '@type' ] = 'Times' ;
974
974
this . cursor . left = this . arop ( args . shift ( ) ) ;
975
975
if ( args . length > 1 ) {
976
- this . cursor . right = this . jobj ( new WOQLQuery ( ) . times ( ...args ) ) ;
976
+ this . cursor . right = this . jobj ( new WOQLQuery ( ) . times ( ...args . map ( this . arop ) ) ) ;
977
977
} else {
978
978
this . cursor . right = this . arop ( args [ 0 ] ) ;
979
979
}
@@ -991,7 +991,7 @@ WOQLQuery.prototype.divide = function (...args) {
991
991
this . cursor [ '@type' ] = 'Divide' ;
992
992
this . cursor . left = this . arop ( args . shift ( ) ) ;
993
993
if ( args . length > 1 ) {
994
- this . cursor . right = this . jobj ( new WOQLQuery ( ) . divide ( ...args ) ) ;
994
+ this . cursor . right = this . jobj ( new WOQLQuery ( ) . divide ( ...args . map ( this . arop ) ) ) ;
995
995
} else {
996
996
this . cursor . right = this . arop ( args [ 0 ] ) ;
997
997
}
@@ -1010,7 +1010,7 @@ WOQLQuery.prototype.div = function (...args) {
1010
1010
this . cursor [ '@type' ] = 'Div' ;
1011
1011
this . cursor . left = this . arop ( args . shift ( ) ) ;
1012
1012
if ( args . length > 1 ) {
1013
- this . cursor . right = this . jobj ( new WOQLQuery ( ) . div ( ...args ) ) ;
1013
+ this . cursor . right = this . jobj ( new WOQLQuery ( ) . div ( ...args . map ( this . arop ) ) ) ;
1014
1014
} else {
1015
1015
this . cursor . right = this . arop ( args [ 0 ] ) ;
1016
1016
}
0 commit comments