Initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
})();
|
||||
//cartodb.core end
|
||||
@@ -0,0 +1,4 @@
|
||||
;(function() {
|
||||
this.cartodb = {};
|
||||
var Backbone = {};
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
cartodb.moduleLoad('odyssey', O);
|
||||
@@ -0,0 +1,8 @@
|
||||
// Restores any previous global libraries, e.g. jQuery
|
||||
for (var lib in window._prev){
|
||||
window[lib] = window._prev[lib];
|
||||
}
|
||||
|
||||
cartodb.moduleLoad('torque', torque);
|
||||
|
||||
Profiler = cartodb.core.Profiler;
|
||||
@@ -0,0 +1,7 @@
|
||||
if(cartodb){
|
||||
// Keep the global version of jQuery, if there is any
|
||||
if(window.$){
|
||||
window._prev = {jQuery: window.$, $: window.$}
|
||||
}
|
||||
window.$ = window.jQuery = cartodb.$;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
var _ = this._; _.noConflict();
|
||||
@@ -0,0 +1,3 @@
|
||||
// version: <%= grunt.config.get('bump.version') %>
|
||||
// sha: <%= gitinfo.local.branch.current.SHA %>
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
cdb.$ = $;
|
||||
cdb.L = L;
|
||||
cdb.Mustache = Mustache;
|
||||
cdb.Backbone = Backbone;
|
||||
cdb._ = _;
|
||||
|
||||
})();
|
||||
|
||||
|
||||
|
||||
|
||||
;
|
||||
for(var i in __prev) {
|
||||
// keep it at global context if it didn't exist
|
||||
if(__prev[i]) {
|
||||
window[i] = __prev[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
})();
|
||||
@@ -0,0 +1,22 @@
|
||||
// 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._
|
||||
};
|
||||
@@ -0,0 +1,10 @@
|
||||
// mustache does no defined a global var, defines a var Mustache instead
|
||||
// so add it to root
|
||||
root.Mustache = Mustache;
|
||||
(function() {
|
||||
var $ = root.$;
|
||||
var jQuery = root.jQuery;
|
||||
var L = root.L;
|
||||
var Mustache = root.Mustache;
|
||||
var Backbone = root.Backbone;
|
||||
var _ = root._;
|
||||
Reference in New Issue
Block a user