Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Throw validation error from correct object

  • Loading branch information...
commit 713edd8200720adfd535681d6d40a21975a9e47b 1 parent 984c01f
@kriszyp kriszyp authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Model.js
View
2  Model.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.