mirror of https://gitee.com/bigwinds/arangodb
Support chaining in Foxx.Model#set.
This commit is contained in:
parent
0620369a05
commit
02c9beab0c
|
@ -191,7 +191,7 @@ _.extend(Model.prototype, {
|
||||||
_.each(attributeName, function (value, key) {
|
_.each(attributeName, function (value, key) {
|
||||||
this.set(key, value);
|
this.set(key, value);
|
||||||
}, this);
|
}, this);
|
||||||
return;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.schema) {
|
if (this.schema) {
|
||||||
|
@ -216,6 +216,8 @@ _.extend(Model.prototype, {
|
||||||
} else {
|
} else {
|
||||||
this.attributes[attributeName] = value;
|
this.attributes[attributeName] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue