2fd972ddce
* jquery.ajaxq * install jquery.ajaxq from npm * patch ajaxq into Backbone code * use ajaxq library with more github stars * eslint
11 lines
326 B
JavaScript
11 lines
326 B
JavaScript
// make changes to Backbone before loading Metamaps code
|
|
import Backbone from 'backbone'
|
|
try { Backbone.$ = window.$ } catch (err) {}
|
|
Backbone.ajax = (opts) => window.$.ajaxq('backbone-ajaxq', opts)
|
|
|
|
import _ from 'lodash'
|
|
import Metamaps from './Metamaps'
|
|
|
|
// create global references
|
|
window._ = _
|
|
window.Metamaps = Metamaps
|