Skip to content

Commit

Permalink
Actually release 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
simplesmiler committed Apr 8, 2018
1 parent 1262d28 commit 289d967
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/vue-clickaway.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ function bind(el, binding) {
}, 0);

el[HANDLER] = function(ev) {
// @NOTE: this test used to be `el.containts`, but working with path is better,
// @NOTE: this test used to be just `el.containts`, but working with path is better,
// because it tests whether the element was there at the time of
// the click, not whether it is there now, that the event has arrived
// to the top.
// @NOTE: `.path` is non-standard, the standard way is `.composedPath()`
let path = ev.path || (ev.composedPath ? ev.composedPath() : undefined);
var path = ev.path || (ev.composedPath ? ev.composedPath() : undefined);
if (initialMacrotaskEnded && (path ? path.indexOf(el) < 0 : !el.contains(ev.target))) {
return callback(ev);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/vue-clickaway.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
}, 0);

el[HANDLER] = function(ev) {
// @NOTE: this test used to be `el.containts`, but working with path is better,
// @NOTE: this test used to be just `el.containts`, but working with path is better,
// because it tests whether the element was there at the time of
// the click, not whether it is there now, that the event has arrived
// to the top.
// @NOTE: `.path` is non-standard, the standard way is `.composedPath()`
let path = ev.path || (ev.composedPath ? ev.composedPath() : undefined);
var path = ev.path || (ev.composedPath ? ev.composedPath() : undefined);
if (initialMacrotaskEnded && (path ? path.indexOf(el) < 0 : !el.contains(ev.target))) {
return callback(ev);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-clickaway.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 289d967

Please sign in to comment.