Skip to content
Browse files

Don't expose the parent object of the ‘ValidationError’ object

  • Loading branch information...
1 parent 8a5bc8f commit 87a79bcf8588373b978c2acbbb2b236ecbb839d7 @Baggz committed Mar 15, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/engines/json/validationError.js
View
6 src/engines/json/validationError.js
@@ -4,9 +4,11 @@
* @constructor
*/
var ValidationError = function(parent) {
+
this.length = 0;
- this.parent = parent;
- this.errorMessages = this.parent.errorMessages;
+
+ this.errorMessages = parent.errorMessages;
+
};
ValidationError.prototype.renderErrorMessage = function(error) {

0 comments on commit 87a79bc

Please sign in to comment.
Something went wrong with that request. Please try again.