mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1197394 - GCLI’s number-type doesn't ignore min or max-values of 0. r=jwalker
This commit is contained in:
parent
fbebaebb5b
commit
6c42afaaa9
@ -69,7 +69,7 @@ exports.items = [
|
||||
},
|
||||
|
||||
getMin: function(context) {
|
||||
if (this.min) {
|
||||
if (this.min != null) {
|
||||
if (typeof this.min === 'function') {
|
||||
return this.min(context);
|
||||
}
|
||||
@ -81,7 +81,7 @@ exports.items = [
|
||||
},
|
||||
|
||||
getMax: function(context) {
|
||||
if (this.max) {
|
||||
if (this.max != null) {
|
||||
if (typeof this.max === 'function') {
|
||||
return this.max(context);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user