mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
defer parsing of JavaScript
This commit is contained in:
parent
ec6f612fca
commit
fbe3312398
9 changed files with 131 additions and 161 deletions
|
@ -1,4 +1,5 @@
|
|||
var Backbone = require('backbone');
|
||||
var jQuery = require('jquery');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
var React = require('react');
|
||||
var ReactDOM = require('react-dom');
|
||||
|
@ -11,6 +12,16 @@ var LocaleActions = require('../actions/LocaleActions');
|
|||
/**
|
||||
* Globals
|
||||
*/
|
||||
|
||||
Backbone.$ = jQuery;
|
||||
|
||||
// Bypass jasmine
|
||||
if (util.isBrowser()) {
|
||||
window.jQuery = jQuery;
|
||||
window.$ = jQuery;
|
||||
window.Raphael = require('raphael');
|
||||
}
|
||||
|
||||
var events = Object.assign(
|
||||
{},
|
||||
EventEmitter.prototype,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue