Adding check for out of order numbers

This commit is contained in:
Jeff Avallone
2014-12-20 10:53:01 -05:00
parent ccdb29224a
commit 55657a792b
2 changed files with 11 additions and 0 deletions
+4
View File
@@ -15,5 +15,9 @@ export default {
} else {
this.maximum = -1;
}
if (this.minimum > this.maximum && this.maximum !== -1) {
throw `Numbers out of order: ${this.textValue}`;
}
}
};