Permalink
Browse files

Implement the ‘getProperties’ method

  • Loading branch information...
1 parent 340d0ab commit 3fcd9793869d53ee151ebae4099ad610371360bf @Baggz committed Mar 15, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/engines/json/validationError.js
@@ -10,4 +10,15 @@ var ValidationError = function() {
ValidationError.prototype.push = function(item) {
this[this.length] = item;
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.