Skip to content

Commit

Permalink
minor jsdoc update
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonBoy committed Nov 10, 2016
1 parent 3ae5c62 commit 08d8558
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

/**
* Initialize the WechatJSSDK instance
* @constructor
* @param {object} wechatConfig, should contain like:
* {
* appId: 'xxxx',
Expand Down Expand Up @@ -73,7 +74,7 @@

/**
* Sign the signature now
* @param {object} newSignConfig, debug mode, appId, jsApiList cannot be changed!!!
* @param {object} [newSignConfig], debug mode, appId, jsApiList cannot be changed!!!
* , should only provide new signature specific config
* @returns {WechatJSSDK} sdk instance
*/
Expand Down Expand Up @@ -128,7 +129,7 @@
ele.onload = function () {
console.log('Wechat script loaded successfully!');
//init the wechat config
self.signSignature(undefined);
self.signSignature();
};
ele.onerror = function (err) {
console.error('Failed to load wechat script!');
Expand All @@ -142,7 +143,7 @@
};

/**
* quick way to set custom moment share configs
* Quick way to set custom moment share configs
* @param {object} info
* @returns {WechatJSSDK}
*/
Expand Down

0 comments on commit 08d8558

Please sign in to comment.