Skip to content

Commit

Permalink
Implement the ‘getProperties’ method
Browse files Browse the repository at this point in the history
  • Loading branch information
František Hába committed Mar 15, 2012
1 parent 340d0ab commit 3fcd979
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/engines/json/validationError.js
Expand Up @@ -10,4 +10,15 @@ var ValidationError = function() {
ValidationError.prototype.push = function(item) { ValidationError.prototype.push = function(item) {
this[this.length] = item; this[this.length] = item;
this.length += 1; this.length += 1;
};

/**
* GetProperties
*/
ValidationError.prototype.getProperties = function() {
return pluck(this, 'property');
};

ValidationError.prototype.getMessages = function() {

}; };

0 comments on commit 3fcd979

Please sign in to comment.