react-image-gallery
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -89,7 +89,16 @@ 'use strict'; | ||
} | ||
window.addEventListener('resize', this._handleResize); | ||
if (window.addEventListener) { | ||
window.addEventListener('resize', this._handleResize); | ||
} else if (window.attachEvent) { | ||
window.attachEvent('onresize', this._handleResize); | ||
} | ||
}, | ||
componentWillUnmount: function componentWillUnmount() { | ||
window.removeEventListener('resize', this._handleResize); | ||
if (window.removeEventListener) { | ||
window.removeEventListener('resize', this._handleResize); | ||
} else if (window.detachEvent) { | ||
window.detachEvent('onresize', this._handleResize); | ||
} | ||
if (this._intervalId) { | ||
@@ -96,0 +105,0 @@ window.clearInterval(this._intervalId); |
@@ -13,2 +13,4 @@ 'use strict'; | ||
var source = require('vinyl-source-stream'); | ||
var streamify = require('gulp-streamify'); | ||
var uglify = require('gulp-uglify'); | ||
var watchify = require('watchify'); | ||
@@ -40,2 +42,3 @@ | ||
.pipe(source('example.js')) | ||
.pipe(streamify(uglify())) | ||
.pipe(gulp.dest('./example/')) | ||
@@ -42,0 +45,0 @@ .pipe(livereload()); |
{ | ||
"name": "react-image-gallery", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Image gallery component for React.JS", | ||
@@ -39,2 +39,4 @@ "main": "./build/image-gallery", | ||
"gulp-sass": "^1.3.3", | ||
"gulp-streamify": "^1.0.0", | ||
"gulp-uglify": "^1.2.0", | ||
"react": "^0.12.2", | ||
@@ -41,0 +43,0 @@ "vinyl-source-stream": "^1.0.0", |
@@ -86,7 +86,16 @@ 'use strict'; | ||
} | ||
window.addEventListener('resize', this._handleResize); | ||
if (window.addEventListener) { | ||
window.addEventListener('resize', this._handleResize); | ||
} else if (window.attachEvent) { | ||
window.attachEvent('onresize', this._handleResize); | ||
} | ||
}, | ||
componentWillUnmount() { | ||
window.removeEventListener('resize', this._handleResize); | ||
if (window.removeEventListener) { | ||
window.removeEventListener('resize', this._handleResize); | ||
} else if (window.detachEvent) { | ||
window.detachEvent('onresize', this._handleResize); | ||
} | ||
if (this._intervalId) { | ||
@@ -93,0 +102,0 @@ window.clearInterval(this._intervalId); |
36218
906
14