mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
first react view up
This commit is contained in:
parent
c76963d86e
commit
a7b23e0342
5 changed files with 88 additions and 3 deletions
|
@ -1,10 +1,12 @@
|
|||
var _ = require('underscore');
|
||||
var Backbone = require('backbone');
|
||||
var React = require('react');
|
||||
|
||||
var util = require('../util');
|
||||
var intl = require('../intl');
|
||||
var LocaleStore = require('../stores/LocaleStore');
|
||||
var LocaleActions = require('../actions/LocaleActions');
|
||||
var Dialog = require('../react_views/TestView.jsx').Dialog;
|
||||
|
||||
/**
|
||||
* Globals
|
||||
|
@ -214,6 +216,12 @@ var initDemo = function(sandbox) {
|
|||
"levels"
|
||||
];
|
||||
}
|
||||
if (params.hasOwnProperty('STARTREACT')) {
|
||||
React.render(
|
||||
React.createElement(Dialog, {}),
|
||||
document.getElementById(params['STARTREACT'])
|
||||
);
|
||||
}
|
||||
if (commands) {
|
||||
sandbox.mainVis.customEvents.on('gitEngineReady', function() {
|
||||
eventBaton.trigger('commandSubmitted', commands.join(''));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue