1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-22 00:07:10 +02:00
This commit is contained in:
Pomax
2016-01-05 23:13:27 -08:00
parent f5b75693e0
commit f79fb75769
2 changed files with 8 additions and 2 deletions

View File

@@ -3,4 +3,10 @@ var ReactDOM = require("react-dom");
var Article = require("./Article.jsx"); var Article = require("./Article.jsx");
var style = require("../stylesheets/style.less"); var style = require("../stylesheets/style.less");
ReactDOM.render(<Article/>, document.getElementById("article")); ReactDOM.render(<Article/>, document.getElementById("article"), function() {
// trigger a #hash navigation
if (window.location.hash) {
var hash = window.location.hash;
window.location.hash = hash;
}
});

View File

@@ -219,7 +219,7 @@ var Graphic = React.createClass({
setCurve: function(c) { setCurve: function(c) {
var pts = []; var pts = [];
c = Array.from(arguments); c = Array.prototype.slice.call(arguments);
c.forEach(nc => { c.forEach(nc => {
pts = pts.concat(nc.points); pts = pts.concat(nc.points);
}); });