metamaps--metamaps/frontend/src/index.js

12 lines
326 B
JavaScript
Raw Normal View History

// 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'
2016-09-22 16:16:15 +00:00
import Metamaps from './Metamaps'
// create global references
window._ = _
2016-09-22 06:25:49 +00:00
window.Metamaps = Metamaps