react-onclickoutside
Advanced tools
Comparing version 0.3.4 to 0.4.0
10
index.js
@@ -18,3 +18,3 @@ /** | ||
// AMD. Register as an anonymous module. | ||
define(['react'], factory); | ||
define(['react-dom'], factory); | ||
} else if (typeof exports === 'object') { | ||
@@ -24,8 +24,8 @@ // Node. Note that this does not work with strict | ||
// that support module.exports | ||
module.exports = factory(require('react')); | ||
module.exports = factory(require('react-dom')); | ||
} else { | ||
// Browser globals (root is window) | ||
root.OnClickOutside = factory(React); | ||
root.OnClickOutside = factory(ReactDOM); | ||
} | ||
}(this, function (React) { | ||
}(this, function (ReactDOM) { | ||
"use strict"; | ||
@@ -78,3 +78,3 @@ | ||
} | ||
}(React.findDOMNode(this), this.handleClickOutside)); | ||
}(ReactDOM.findDOMNode(this), this.handleClickOutside)); | ||
@@ -81,0 +81,0 @@ var pos = registeredComponents.length; |
{ | ||
"name": "react-onclickoutside", | ||
"version": "0.3.4", | ||
"version": "0.4.0", | ||
"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
8528