diff --git a/frontend/src/index.js b/frontend/src/index.js index 1d82af7c..41d34b94 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -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