patch ajaxq into Backbone code
This commit is contained in:
parent
3662f4c6fc
commit
6edcbc58ab
1 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,13 @@
|
|||
// create global references
|
||||
import _ from 'lodash'
|
||||
import Backbone from 'backbone'
|
||||
|
||||
// make changes to Backbone before loading Metamaps code
|
||||
try { Backbone.$ = window.$ } catch(err) {}
|
||||
Backbone.ajax = window.$.ajaxq
|
||||
|
||||
import Metamaps from './Metamaps'
|
||||
|
||||
// create global references
|
||||
window._ = _
|
||||
window.Metamaps = Metamaps
|
||||
window.Backbone = Backbone // TODO remove
|
||||
|
|
Loading…
Add table
Reference in a new issue