This commit is contained in:
Peter Cottle 2012-09-17 13:25:59 -07:00
parent a229bc2f41
commit b566ebf6f6
6 changed files with 10 additions and 8 deletions

View file

@ -12,7 +12,7 @@ var Command = Backbone.Model.extend({
},
validateAtInit: function() {
if (!this.get('rawStr')) {
if (this.get('rawStr') === null) {
throw new Error('Give me a string!');
}
if (!this.get('createTime')) {