Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implement the ‘getProperties’ method

  • Loading branch information...
commit 3fcd9793869d53ee151ebae4099ad610371360bf 1 parent 340d0ab
@Baggz authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/engines/json/validationError.js
View
11 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() {
+
};
Please sign in to comment.
Something went wrong with that request. Please try again.