react-onclickoutside
Advanced tools
Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "react-onclickoutside", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "An onClickOutside mixin for React components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -38,4 +38,4 @@ /** | ||
componentDidMount: function() { | ||
if(!this.onClickOutside) | ||
throw new Error("Component lacks an onClickOutside function to handle outside click events."); | ||
if(!this.handleClickOutside) | ||
throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events."); | ||
@@ -58,3 +58,3 @@ var fn = (function(localNode, eventHandler) { | ||
} | ||
}(this.getDOMNode(), this.onClickOutside)); | ||
}(this.getDOMNode(), this.handleClickOutside)); | ||
@@ -61,0 +61,0 @@ document.addEventListener("click", fn); |
{ | ||
"name": "react-onclickoutside", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "An onClickOutside mixin for React components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,3 +19,3 @@ # An onClickOutside mixin for React components | ||
onClickOutside: function(evt) { | ||
handleClickOutside: function(evt) { | ||
// ...handling code goes here... | ||
@@ -40,3 +40,3 @@ } | ||
onClickOutside: function(evt) { | ||
handleClickOutside: function(evt) { | ||
// ...handling code goes here... | ||
@@ -43,0 +43,0 @@ } |
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
4685