From ce3c35fa0b22fc4c433e66204c758f7a5ffcde94 Mon Sep 17 00:00:00 2001 From: Ma Bingyao Date: Tue, 15 Nov 2016 13:21:29 +0800 Subject: [PATCH] Fixed isPromise --- dist/hprose-html5.src.js | 2 +- src/Future.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/hprose-html5.src.js b/dist/hprose-html5.src.js index 5908aa8..0d56c98 100644 --- a/dist/hprose-html5.src.js +++ b/dist/hprose-html5.src.js @@ -1139,7 +1139,7 @@ } function isPromise(obj) { - return 'function' == typeof obj.then; + return 'function' === typeof obj.then; } function toPromise(obj) { diff --git a/src/Future.js b/src/Future.js index 2977c3c..85a4d29 100644 --- a/src/Future.js +++ b/src/Future.js @@ -55,7 +55,7 @@ } function isPromise(obj) { - return 'function' == typeof obj.then; + return 'function' === typeof obj.then; } function toPromise(obj) {