Skip to content

Commit

Permalink
Fixed a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Apr 24, 2018
1 parent 55bef71 commit 98f649a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/hprose-html5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hprose-html5.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/hprose-html5.src.js
Expand Up @@ -4936,12 +4936,12 @@ hprose.global = (
(functions && functions.constructor === Object)) {
functions = [functions];
}
if (!Array.isArray(functions)) {
setImmediate(initService, stub);
return _ready;
if (Array.isArray(functions)) {
setFunctions(stub, functions);
}
else if (typeof(Proxy) === 'undefined') {
setFunctions(stub, functions);
setImmediate(initService, stub);
return _ready;
}
else {
stub = new Proxy({}, new HproseProxy(setFunction));
Expand Down
8 changes: 4 additions & 4 deletions src/Client.js
Expand Up @@ -884,12 +884,12 @@
(functions && functions.constructor === Object)) {
functions = [functions];
}
if (!Array.isArray(functions)) {
setImmediate(initService, stub);
return _ready;
if (Array.isArray(functions)) {
setFunctions(stub, functions);
}
else if (typeof(Proxy) === 'undefined') {
setFunctions(stub, functions);
setImmediate(initService, stub);
return _ready;
}
else {
stub = new Proxy({}, new HproseProxy(setFunction));
Expand Down

0 comments on commit 98f649a

Please sign in to comment.