Code coverage report for src/core/Handler.js

Statements: 63.64% (7 / 11)      Branches: 50% (2 / 4)      Functions: 75% (3 / 4)      Lines: 66.67% (6 / 9)     

All files » src/core/ » Handler.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29          1   200       250   250 250       2                    
/*
	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 () {
		Iif (this._enabled) { return; }
 
		this._enabled = true;
		this.addHooks();
	},
 
	disable: function () {
		Eif (!this._enabled) { return; }
 
		this._enabled = false;
		this.removeHooks();
	},
 
	enabled: function () {
		return !!this._enabled;
	}
});