cartodb/lib/assets/javascripts/cdb/grunt/templates/wrapper_header.js
zhongjin a96ef233c9 cdb
2020-06-15 12:07:54 +08:00

22 lines
557 B
JavaScript

// cartodb.js version: <%= version %>
// uncompressed version: cartodb.uncompressed.js
// sha: <%= sha %>
(function() {
var define; // Undefine define (require.js), see https://github.com/CartoDB/cartodb.js/issues/543
var root = this;
if(!<%= load_jquery %>) {
if(root.jQuery === undefined) {
throw "jQuery should be loaded before include cartodb.js";
}
}
// save current libraries
var __prev = {
jQuery: root.jQuery,
$: root.$,
L: root.L,
Mustache: root.Mustache,
Backbone: root.Backbone,
_: root._
};