From e90ffea98be29081a214b4f542bd41cfc9a88f5f Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Thu, 3 Mar 2016 13:29:47 -0800 Subject: [PATCH] Don't abuse the title attribute --- src/components/app.js | 2 +- src/components/section.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/app.js b/src/components/app.js index ba33e76..47b85ba 100644 --- a/src/components/app.js +++ b/src/components/app.js @@ -79,7 +79,7 @@ var App = React.createClass({ var rect = sections[i].getBoundingClientRect(); if (rect.bottom > 0) { this.setState({ - activeSection: sections[i].title + activeSection: sections[i].getAttribute('data-title') }); return; } diff --git a/src/components/section.js b/src/components/section.js index 9538e16..24dd70b 100644 --- a/src/components/section.js +++ b/src/components/section.js @@ -27,7 +27,7 @@ var Section = React.createClass({ let { chunk } = this.props; let { left, right, preview } = chunk; return (