mirror of https://gitee.com/bigwinds/arangodb
Don't throw in Model::get.
This commit is contained in:
parent
d3df9ae82c
commit
391810aa61
|
@ -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];
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue