Skip to content

Commit

Permalink
fix hasOwnProperty undefined in store
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonBoy committed Apr 10, 2017
1 parent d1ff2e3 commit 7652a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/store/Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class Store extends EventEmitter {
* @return {Promise}
*/
isSignatureExisting (url) {
const ret = this.store.urls.hasOwnProperty(url);
const ret = (url in this.store.urls);
return Promise.resolve(ret);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wechat-jssdk",
"version": "3.0.7",
"version": "3.0.8",
"description": "Next-Generation WeChat JS-SDK integration with NodeJS",
"main": "./lib/index.js",
"engines": {
Expand Down

0 comments on commit 7652a6c

Please sign in to comment.