Permalink
Browse files

Throw validation error from correct object

  • Loading branch information...
1 parent 984c01f commit 713edd8200720adfd535681d6d40a21975a9e47b @kriszyp kriszyp committed Feb 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 Model.js
View
@@ -153,7 +153,7 @@ define([
var object = this;
return when(skipValidation ? true : this.validate(), function (isValid) {
if (!isValid) {
- throw this.validateError();
+ throw object.validateError();
}
var scenario = object.scenario;
// suppress any non-date from serialization output

0 comments on commit 713edd8

Please sign in to comment.