1
0
Fork 0

Support chaining in Foxx.Model#set.

This commit is contained in:
Alan Plum 2015-03-24 17:06:29 +01:00
parent 0620369a05
commit 02c9beab0c
1 changed files with 3 additions and 1 deletions

View File

@ -191,7 +191,7 @@ _.extend(Model.prototype, {
_.each(attributeName, function (value, key) {
this.set(key, value);
}, this);
return;
return this;
}
if (this.schema) {
@ -216,6 +216,8 @@ _.extend(Model.prototype, {
} else {
this.attributes[attributeName] = value;
}
return this;
},
////////////////////////////////////////////////////////////////////////////////