Skip to content

Commit

Permalink
optional event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
PitPik committed Jul 1, 2017
1 parent 251534e commit 9c4ccfb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions datePicker.js
Expand Up @@ -113,8 +113,8 @@
_this.toggled = undefined;
_this.isOpen && renderCallback(_this);
}, false, _this);
addEvent(document.body, 'focus', _toggle, true, _this);
addEvent(document.body, 'click', _toggle, false, _this);
addEvent(_this.options.body, 'focus', _toggle, true, _this);
addEvent(_this.options.body, 'click', _toggle, false, _this);

_this.options.initCallback.call(_this, options.elements);
};
Expand Down
4 changes: 2 additions & 2 deletions datePicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion datePicker.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions jqDatePicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jqDatePicker.min.js.map

Large diffs are not rendered by default.

0 comments on commit 9c4ccfb

Please sign in to comment.