Small logic cleanup

This commit is contained in:
Heath Morrison 2016-04-25 01:11:05 +03:00
parent a4e825191f
commit 75fd2f42f3
1 changed files with 3 additions and 3 deletions

View File

@ -101,11 +101,11 @@ function createProxyMethod(Model, remotes, remoteMethod) {
if (remoteMethod.isStatic) {
remotes.invoke(remoteMethod.stringName, args, callback);
return callback.promise;
} else {
var ctorArgs = [this.id];
remotes.invoke(remoteMethod.stringName, ctorArgs, args, callback);
}
var ctorArgs = [this.id];
remotes.invoke(remoteMethod.stringName, ctorArgs, args, callback);
return callback.promise;
}