Sha256: b3bd797140dbc9f891143453ec8a9a4b721e27ef9c94ee780a1ca09cb7a60430

Contents?: true

Size: 513 Bytes

Versions: 10

Compression:

Stored size: 513 Bytes

Contents

/*
	L.Handler is a base class for handler classes that are used internally to inject
	interaction features like dragging to classes like Map and Marker.
*/

L.Handler = L.Class.extend({
	initialize: function (map) {
		this._map = map;
	},

	enable: function () {
		if (this._enabled) { return; }

		this._enabled = true;
		this.addHooks();
	},

	disable: function () {
		if (!this._enabled) { return; }

		this._enabled = false;
		this.removeHooks();
	},

	enabled: function () {
		return !!this._enabled;
	}
});

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
leaflet-js-0.7.9 vendor/assets/Leaflet/src/core/Handler.js
leaflet-js-0.7.8 vendor/assets/Leaflet/src/core/Handler.js
leaflet-js-0.7.7 vendor/assets/Leaflet/src/core/Handler.js
leaflet-js-0.8.dev2 lib/leaflet/src/core/Handler.js
leaflet-js-0.7.0.4 lib/leaflet/src/core/Handler.js
leaflet-js-0.7.0.3 lib/leaflet/src/core/Handler.js
leaflet-js-0.7.0.2 lib/leaflet/src/core/Handler.js
leaflet-js-0.7.0.1 lib/leaflet/src/core/Handler.js
leaflet-js-0.7.0 lib/leaflet/src/core/Handler.js
leaflet-js-0.6.beta4 lib/leaflet/src/core/Handler.js