Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
jsdoc fix
Browse files Browse the repository at this point in the history
Correct JSDoc for the public methods, by marking the `options` argument as optional. This solves some IDE (WebStorm in my case) issues where the function call is marked as incomplete.
  • Loading branch information
jtangelder committed Nov 12, 2014
1 parent 077ab72 commit 2f84c2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fastclick.js
Expand Up @@ -19,7 +19,7 @@
*
* @constructor
* @param {Element} layer The layer to listen on
* @param {Object} options The options to override the defaults
* @param {Object} [options={}] The options to override the defaults
*/
function FastClick(layer, options) {
var oldOnClick;
Expand Down Expand Up @@ -784,7 +784,7 @@
* Factory method for creating a FastClick object
*
* @param {Element} layer The layer to listen on
* @param {Object} options The options to override the defaults
* @param {Object} [options] The options to override the defaults
*/
FastClick.attach = function(layer, options) {
return new FastClick(layer, options);
Expand Down

0 comments on commit 2f84c2d

Please sign in to comment.