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