1
0
Fork 0

Don't throw in Model::get.

This commit is contained in:
Alan Plum 2014-07-04 11:10:32 +02:00
parent d3df9ae82c
commit 391810aa61
1 changed files with 0 additions and 5 deletions

View File

@ -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];
},