Skip to content

Commit

Permalink
Use the new API for defining remoting types
Browse files Browse the repository at this point in the history
  • Loading branch information
bajtos committed Sep 1, 2016
1 parent 90cbf65 commit f1cf3ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/remote-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ RemoteConnector.prototype.resolve = function(Model) {
});

// setup a remoting type converter for this model
remotes.defineType(Model.modelName, function(val) {
return val ? new Model(val) : val;
remotes.defineObjectType(Model.modelName, function(data) {
return new Model(data);
});
};

Expand Down

0 comments on commit f1cf3ae

Please sign in to comment.