metamaps--metamaps/frontend/src/index.js
Devin Howard 2fd972ddce ajax queue (fixes #853) (#1037)
* jquery.ajaxq

* install jquery.ajaxq from npm

* patch ajaxq into Backbone code

* use ajaxq library with more github stars

* eslint
2017-01-22 13:50:34 -05:00

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