From 454c075855a4aaeea5eec03e20b4b023a61226a7 Mon Sep 17 00:00:00 2001 From: Jordan Sexton Date: Fri, 23 Oct 2015 02:59:00 -0500 Subject: [PATCH 1/2] allow loose versioning of react 0.13/0.14; closes #27 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e96affc..681aa05 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "homepage": "https://github.com/developerdizzle/react-virtual-list", "dependencies": { - "react": "^0.13.3" + "react": "~0.13.x" }, "devDependencies": { "gulp": "^3.8.11", From e96d1edb1cd2e5d076ce2a57ff789e4174fd231d Mon Sep 17 00:00:00 2001 From: Jordan Sexton Date: Fri, 23 Oct 2015 02:59:49 -0500 Subject: [PATCH 2/2] this.getDOMNode() deprecated; --> React.findDOMNode(this) --- src/VirtualList.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VirtualList.jsx b/src/VirtualList.jsx index 5973b93..d7eeba9 100644 --- a/src/VirtualList.jsx +++ b/src/VirtualList.jsx @@ -41,7 +41,7 @@ var VirtualList = React.createClass({ // no space to render if (viewHeight <= 0) return state; - var list = this.getDOMNode(); + var list = React.findDOMNode(this); var offsetTop = utils.topDifference(list, container);