Small logic cleanup
This commit is contained in:
parent
a4e825191f
commit
75fd2f42f3
|
@ -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);
|
||||
}
|
||||
|
||||
return callback.promise;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue