From 95caa7f059d585ef2742c21ab3123193553724a6 Mon Sep 17 00:00:00 2001 From: Lewis Leighton <lewis.leighton@gmail.com> Date: Sun, 22 Feb 2015 21:00:49 +0000 Subject: [PATCH 1/3] Fixes issue where rendered rows refs start and end keys can get out of range --- lib/Canvas.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Canvas.js b/lib/Canvas.js index c7108ca..6024267 100644 --- a/lib/Canvas.js +++ b/lib/Canvas.js @@ -179,8 +179,9 @@ var Canvas = React.createClass({ setScrollLeft(scrollLeft) { if (this._currentRowsLength !== undefined) { - for (var i = 0, len = this._currentRowsLength; i < len; i++) { - this.refs[i].setScrollLeft(scrollLeft); + Object.keys(this.refs).forEach(function(key){ + this.refs[key].setScrollLeft(scrollLeft) + }, this); } } }, From 981308d4dc08efb1d14224da51b7bde78924aa42 Mon Sep 17 00:00:00 2001 From: Lewis Leighton <lewis.leighton@gmail.com> Date: Sun, 22 Feb 2015 21:49:59 +0000 Subject: [PATCH 2/3] remove erroneous bracket doh! --- lib/Canvas.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Canvas.js b/lib/Canvas.js index 6024267..e834fd5 100644 --- a/lib/Canvas.js +++ b/lib/Canvas.js @@ -182,7 +182,6 @@ var Canvas = React.createClass({ Object.keys(this.refs).forEach(function(key){ this.refs[key].setScrollLeft(scrollLeft) }, this); - } } }, From 8fe668803b4d81c1f740613388e19dd2175fd647 Mon Sep 17 00:00:00 2001 From: Lewis Leighton <lewis.leighton@gmail.com> Date: Sat, 11 Apr 2015 22:34:38 +0100 Subject: [PATCH 3/3] bump ract deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f4e6355..18a8f44 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "reactify": "^0.14.0" }, "peerDependencies": { - "react": "^0.11.1" + "react": ">=0.11.1" }, "devDependencies": { "browserify": "^5.9.1",