nuka-carousel
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -27,2 +27,6 @@ 'use strict'; | ||
var _ExecutionEnvironment = require('exenv'); | ||
var _ExecutionEnvironment2 = _interopRequireWildcard(_ExecutionEnvironment); | ||
'use strict'; | ||
@@ -426,4 +430,6 @@ | ||
var self = this; | ||
addEvent(window, 'resize', self.onResize); | ||
addEvent(document, 'readystatechange', self.onReadyStateChange); | ||
if (_ExecutionEnvironment2['default'].canUseDOM) { | ||
addEvent(window, 'resize', self.onResize); | ||
addEvent(document, 'readystatechange', self.onReadyStateChange); | ||
} | ||
}, | ||
@@ -441,4 +447,6 @@ | ||
var self = this; | ||
removeEvent(window, 'resize', self.onResize); | ||
removeEvent(document, 'readystatechange', self.onReadyStateChange); | ||
if (_ExecutionEnvironment2['default'].canUseDOM) { | ||
removeEvent(window, 'resize', self.onResize); | ||
removeEvent(document, 'readystatechange', self.onReadyStateChange); | ||
} | ||
}, | ||
@@ -445,0 +453,0 @@ |
{ | ||
"name": "nuka-carousel", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Pure React Carousel", | ||
"main": "index.js", | ||
"dependencies": { | ||
"exenv": "^1.1.0", | ||
"object-assign": "^2.0.0", | ||
@@ -8,0 +9,0 @@ "react-tween-state": "0.0.5" |
@@ -7,2 +7,3 @@ 'use strict'; | ||
import assign from 'object-assign'; | ||
import ExecutionEnvironment from 'exenv'; | ||
@@ -323,5 +324,5 @@ React.initializeTouchEvents(true); | ||
if ((swipeAngle >= 35) && (swipeAngle <= 135)) { | ||
return 1; | ||
return 1; | ||
} else { | ||
return -1; | ||
return -1; | ||
} | ||
@@ -417,4 +418,6 @@ } | ||
var self = this; | ||
addEvent(window, 'resize', self.onResize); | ||
addEvent(document, 'readystatechange', self.onReadyStateChange); | ||
if (ExecutionEnvironment.canUseDOM) { | ||
addEvent(window, 'resize', self.onResize); | ||
addEvent(document, 'readystatechange', self.onReadyStateChange); | ||
} | ||
}, | ||
@@ -432,4 +435,6 @@ | ||
var self = this; | ||
removeEvent(window, 'resize', self.onResize); | ||
removeEvent(document, 'readystatechange', self.onReadyStateChange); | ||
if (ExecutionEnvironment.canUseDOM) { | ||
removeEvent(window, 'resize', self.onResize); | ||
removeEvent(document, 'readystatechange', self.onReadyStateChange); | ||
} | ||
}, | ||
@@ -436,0 +441,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
77815
2166
4
+ Addedexenv@^1.1.0
+ Addedexenv@1.2.2(transitive)