Skip to content

Commit 8414435

Browse files
author
ben
committed
v0.1.11
1 parent 52739c9 commit 8414435

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# react-grid-gallery
22

3+
### v0.1.11 / 2016-08-21
4+
5+
* Fixed react-dom typo
6+
37
### v0.1.10 / 2016-08-21
48

59
* Added option to allow disabling of lightbox image display. `enableLightbox` (PropType.bool, default `true`)

lib/Gallery.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ var _react = require('react');
66

77
var _react2 = _interopRequireDefault(_react);
88

9+
var _reactDom = require('react-dom');
10+
11+
var _reactDom2 = _interopRequireDefault(_reactDom);
12+
913
var _reactImages = require('react-images');
1014

1115
var _reactImages2 = _interopRequireDefault(_reactImages);
@@ -21,8 +25,6 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
2125
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2226

2327
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
24-
//import ReactDOM from 'react-dom';
25-
2628

2729
var update = require('react-addons-update');
2830

@@ -67,15 +69,15 @@ var Gallery = function (_Component) {
6769
}, {
6870
key: 'componentDidUpdate',
6971
value: function componentDidUpdate() {
70-
if (ReactDOM.findDOMNode(this).clientWidth !== this.state.containerWidth) {
72+
if (_reactDom2.default.findDOMNode(this).clientWidth !== this.state.containerWidth) {
7173
this.handleResize();
7274
}
7375
}
7476
}, {
7577
key: 'handleResize',
7678
value: function handleResize() {
7779
this.setState({
78-
containerWidth: Math.floor(ReactDOM.findDOMNode(this).clientWidth)
80+
containerWidth: Math.floor(_reactDom2.default.findDOMNode(this).clientWidth)
7981
});
8082
}
8183
}, {

lib/react-grid-gallery.bundle.min.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-grid-gallery",
3-
"version": "0.1.10",
3+
"version": "0.1.11",
44
"description": "Justified gallery component for React.",
55
"main": "lib/Gallery.js",
66
"dependencies": {

0 commit comments

Comments
 (0)