Remove remote option object

This commit is contained in:
Ritchie Martori 2013-07-16 12:51:59 -07:00
parent 1970f12988
commit d128ed4386
1 changed files with 2 additions and 2 deletions

View File

@ -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) {