react-onclickoutside
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -56,3 +56,3 @@ /** | ||
componentDidMount: function() { | ||
if(!this.handleClickOutside) | ||
if(typeof this.handleClickOutside !== "function") | ||
throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events."); | ||
@@ -62,2 +62,3 @@ | ||
return function(evt) { | ||
evt.stopPropagation(); | ||
var source = evt.target; | ||
@@ -117,3 +118,3 @@ var found = false; | ||
*/ | ||
disableOnClickOutside: function(fn) { | ||
disableOnClickOutside: function() { | ||
var fn = this.__outsideClickHandler; | ||
@@ -120,0 +121,0 @@ document.removeEventListener("mousedown", fn); |
{ | ||
"name": "react-onclickoutside", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "An onClickOutside mixin for React components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
8511
141