From 3fcd9793869d53ee151ebae4099ad610371360bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frantis=CC=8Cek=20Ha=CC=81ba?= Date: Thu, 15 Mar 2012 15:54:51 +0100 Subject: [PATCH] =?UTF-8?q?Implement=20the=20=E2=80=98getProperties?= =?UTF-8?q?=E2=80=99=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/engines/json/validationError.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/engines/json/validationError.js b/src/engines/json/validationError.js index 005166c..1fb824a 100644 --- a/src/engines/json/validationError.js +++ b/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() { + }; \ No newline at end of file