mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-22 08:13:51 +02:00
.
This commit is contained in:
@@ -3,4 +3,10 @@ var ReactDOM = require("react-dom");
|
||||
var Article = require("./Article.jsx");
|
||||
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;
|
||||
}
|
||||
});
|
||||
|
@@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user