Bug 1197394 - GCLI’s number-type doesn't ignore min or max-values of 0. r=jwalker

This commit is contained in:
Johan K. Jensen 2015-08-22 00:58:00 -04:00
parent fbebaebb5b
commit 6c42afaaa9

View File

@ -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);
}