Sha256: 561a0b7cb36fbb00b8918d8361645108e67821df90ee7e5f6bfd6cf6673cc00f

Contents?: true

Size: 522 Bytes

Versions: 5

Compression:

Stored size: 522 Bytes

Contents

var oldL = window.L,
    L = {};

L.version = '0.7';

// define Leaflet for Node module pattern loaders, including Browserify
if (typeof module === 'object' && typeof module.exports === 'object') {
	module.exports = L;

// define Leaflet as an AMD module
} else if (typeof define === 'function' && define.amd) {
	define(L);
}

// define Leaflet as a global L variable, saving the original L to restore later if needed

L.noConflict = function () {
	window.L = oldL;
	return this;
};

window.L = L;

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
leaflet-js-0.7.0.4 lib/leaflet/src/Leaflet.js
leaflet-js-0.7.0.3 lib/leaflet/src/Leaflet.js
leaflet-js-0.7.0.2 lib/leaflet/src/Leaflet.js
leaflet-js-0.7.0.1 lib/leaflet/src/Leaflet.js
leaflet-js-0.7.0 lib/leaflet/src/Leaflet.js