Remove remote option object
This commit is contained in:
parent
1970f12988
commit
d128ed4386
|
@ -42,11 +42,11 @@ Model.setup = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(id && data) {
|
if(id && data) {
|
||||||
var model = new ModelCtor(data, {remote: true});
|
var model = new ModelCtor(data);
|
||||||
model.id = id;
|
model.id = id;
|
||||||
fn(null, model);
|
fn(null, model);
|
||||||
} else if(data) {
|
} else if(data) {
|
||||||
fn(null, new ModelCtor(data, {remote: true}));
|
fn(null, new ModelCtor(data));
|
||||||
} else if(id) {
|
} else if(id) {
|
||||||
ModelCtor.find(id, function (err, model) {
|
ModelCtor.find(id, function (err, model) {
|
||||||
if(err) {
|
if(err) {
|
||||||
|
|
Loading…
Reference in New Issue