diff --git a/components/App.jsx b/components/App.jsx index e6b3cbe6..8d916027 100644 --- a/components/App.jsx +++ b/components/App.jsx @@ -3,4 +3,10 @@ var ReactDOM = require("react-dom"); var Article = require("./Article.jsx"); var style = require("../stylesheets/style.less"); -ReactDOM.render(
, document.getElementById("article")); +ReactDOM.render(
, document.getElementById("article"), function() { + // trigger a #hash navigation + if (window.location.hash) { + var hash = window.location.hash; + window.location.hash = hash; + } +}); diff --git a/components/Graphic.jsx b/components/Graphic.jsx index 7607ab98..b049940f 100644 --- a/components/Graphic.jsx +++ b/components/Graphic.jsx @@ -219,7 +219,7 @@ var Graphic = React.createClass({ setCurve: function(c) { var pts = []; - c = Array.from(arguments); + c = Array.prototype.slice.call(arguments); c.forEach(nc => { pts = pts.concat(nc.points); });