Comparing version 0.1.6 to 0.1.7
@@ -201,3 +201,3 @@ 'use strict'; | ||
value: function triggerMouseEnter() { | ||
if (typeof this.spec !== 'undefined' && typeof this.spec.mouseEnter === 'function') { | ||
if (_typeof(this.spec) === 'object' && typeof this.spec.mouseEnter === 'function') { | ||
this.spec.mouseEnter(this.refs.wrappedComponent.props, this.refs.wrappedComponent); | ||
@@ -209,3 +209,3 @@ } | ||
value: function triggerMouseLeave() { | ||
if (typeof this.spec !== 'undefined' && typeof this.spec.mouseLeave === 'function') { | ||
if (_typeof(this.spec) === 'object' && typeof this.spec.mouseLeave === 'function') { | ||
this.spec.mouseLeave(this.refs.wrappedComponent.props, this.refs.wrappedComponent); | ||
@@ -212,0 +212,0 @@ } |
@@ -182,3 +182,3 @@ 'use strict'; | ||
this.aiming = true; | ||
if (typeof this.spec !== 'undefined' && typeof this.spec.aimStart === 'function') { | ||
if (_typeof(this.spec) === 'object' && typeof this.spec.aimStart === 'function') { | ||
this.spec.aimStart(this.refs.wrappedComponent.props, this.refs.wrappedComponent, distance); | ||
@@ -196,3 +196,3 @@ } | ||
if (typeof this.spec !== 'undefined' && typeof this.spec.aimMove === 'function') { | ||
if (_typeof(this.spec) === 'object' && typeof this.spec.aimMove === 'function') { | ||
this.spec.aimMove(this.refs.wrappedComponent.props, this.refs.wrappedComponent, distance); | ||
@@ -219,3 +219,3 @@ } | ||
_this3.aiming = false; | ||
if (typeof _this3.spec !== 'undefined' && typeof _this3.spec.aimStop === 'function') { | ||
if (_typeof(_this3.spec) === 'object' && typeof _this3.spec.aimStop === 'function') { | ||
if (_this3.refs.wrappedComponent) { | ||
@@ -242,3 +242,3 @@ _this3.spec.aimStop(_this3.refs.wrappedComponent.props, _this3.refs.wrappedComponent); | ||
value: function triggerMouseEnter() { | ||
if (typeof this.spec !== 'undefined' && typeof this.spec.mouseEnter === 'function') { | ||
if (_typeof(this.spec) === 'object' && typeof this.spec.mouseEnter === 'function') { | ||
this.spec.mouseEnter(this.refs.wrappedComponent.props, this.refs.wrappedComponent); | ||
@@ -250,3 +250,3 @@ } | ||
value: function triggerMouseLeave() { | ||
if (typeof this.spec !== 'undefined' && typeof this.spec.mouseLeave === 'function') { | ||
if (_typeof(this.spec) === 'object' && typeof this.spec.mouseLeave === 'function') { | ||
this.spec.mouseLeave(this.refs.wrappedComponent.props, this.refs.wrappedComponent); | ||
@@ -253,0 +253,0 @@ } |
{ | ||
"name": "react-aim", | ||
"author": "Gabriel Bull", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Determine the cursor aim for triggering mouse events.", | ||
@@ -6,0 +6,0 @@ "main": "./lib/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
452450