react-image-gallery
Advanced tools
Comparing version 0.5.12 to 0.5.13
@@ -37,2 +37,3 @@ 'use strict'; | ||
}; | ||
this._handleResize = this._handleResize.bind(this); | ||
} | ||
@@ -90,3 +91,3 @@ | ||
} | ||
window.addEventListener('resize', this._handleResize.bind(this)); | ||
window.addEventListener('resize', this._handleResize); | ||
} | ||
@@ -96,3 +97,3 @@ }, { | ||
value: function componentWillUnmount() { | ||
window.removeEventListener('resize', this._handleResize.bind(this)); | ||
window.removeEventListener('resize', this._handleResize); | ||
if (this._intervalId) { | ||
@@ -99,0 +100,0 @@ window.clearInterval(this._intervalId); |
{ | ||
"name": "react-image-gallery", | ||
"version": "0.5.12", | ||
"description": "Image gallery component for React.JS", | ||
"version": "0.5.13", | ||
"description": "Image gallery, Carousel, Slide Show component for React", | ||
"main": "./build/image-gallery", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -13,2 +13,3 @@ import React from 'react' | ||
} | ||
this._handleResize = this._handleResize.bind(this) | ||
} | ||
@@ -69,7 +70,7 @@ | ||
} | ||
window.addEventListener('resize', this._handleResize.bind(this)) | ||
window.addEventListener('resize', this._handleResize) | ||
} | ||
componentWillUnmount() { | ||
window.removeEventListener('resize', this._handleResize.bind(this)) | ||
window.removeEventListener('resize', this._handleResize) | ||
if (this._intervalId) { | ||
@@ -76,0 +77,0 @@ window.clearInterval(this._intervalId) |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
0
45689
9
1043