MCSM:fix: javascript
This commit is contained in:
@@ -15,14 +15,14 @@ var ContentModule = React.createClass({
|
||||
document.body.appendChild(style);
|
||||
},
|
||||
getInitialState: function(){return{
|
||||
nvScriptReady: 0,
|
||||
nvScriptReady: 0
|
||||
}},
|
||||
componentWillMount: function(){
|
||||
var _this = this;
|
||||
|
||||
this.loadScript("/mcsmanager/components.js",
|
||||
function(){ _this.setState({nvScriptReady: _this.state.nvScriptReady+1}); console.debug('components - ok'); },
|
||||
function(){ _this.setState({nvScriptReady: -5}); console.debug('components - error'); },
|
||||
function(){ _this.setState({nvScriptReady: -5}); console.debug('components - error'); }
|
||||
);
|
||||
|
||||
this.loadScript("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js",
|
||||
|
||||
Reference in New Issue
Block a user