makeup-expander
Advanced tools
Comparing version 0.8.6 to 0.8.7
@@ -83,4 +83,4 @@ 'use strict'; // requires CustomEvent polyfill for IE | ||
function _onDocumentClick() { | ||
if (this.el.contains(event.target) === false) { | ||
function _onDocumentClick(e) { | ||
if (this.el.contains(e.target) === false) { | ||
this.expanded = false; | ||
@@ -98,7 +98,7 @@ } | ||
function _onDocumentTouchEnd() { | ||
function _onDocumentTouchEnd(e) { | ||
if (this.documentClick === true) { | ||
this.documentClick = false; | ||
if (this.el.contains(event.target) === false) { | ||
if (this.el.contains(e.target) === false) { | ||
this.expanded = false; | ||
@@ -105,0 +105,0 @@ } |
{ | ||
"name": "makeup-expander", | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"lockfileVersion": 1, | ||
@@ -5,0 +5,0 @@ "requires": true, |
{ | ||
"name": "makeup-expander", | ||
"description": "Creates the basic interactivity for an element that expands and collapses another element.", | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/makeup/makeup-js/tree/master/packages/makeup-expander", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20592