mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1197394 - GCLI’s number-type doesn't ignore min or max-values of 0. r=jwalker
This commit is contained in:
parent
7d4d53c159
commit
98cd6dc706
@ -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