From 391810aa61eb72f70d09fd0d1830ca4c63b1f54e Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Fri, 4 Jul 2014 11:10:32 +0200 Subject: [PATCH] Don't throw in Model::get. --- js/server/modules/org/arangodb/foxx/model.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/server/modules/org/arangodb/foxx/model.js b/js/server/modules/org/arangodb/foxx/model.js index 5e44258c76..3ccd5084de 100644 --- a/js/server/modules/org/arangodb/foxx/model.js +++ b/js/server/modules/org/arangodb/foxx/model.js @@ -186,11 +186,6 @@ _.extend(Model.prototype, { get: function (attributeName) { 'use strict'; - var attrs = this.constructor.attributes; - if (attrs && _.keys(attrs).indexOf(attributeName) === -1) { - throw new Error("Unknown attribute: " + attributeName); - } - return this.attributes[attributeName]; },