lib/leaflet.js
function (remove) {
		if (!L.DomEvent) { return; }

		this._targets = {};
		this._targets[L.stamp(this._container)] = this;

		var onOff = remove ? 'off' : 'on';

		// @event click: MouseEvent
		// Fired when the user clicks (or taps) the map.
		// @event dblclick: MouseEvent
		// Fired when the user double-clicks (or double-taps) the map.
		// @event mousedown: MouseEvent
		// Fired when the user pushes the mouse button on the map.
		// @event mouseup: MouseEvent
		// Fired when the user releases the mouse button on the map.
		// @event mouseover: MouseEvent
		// Fired when the mouse enters the map.
		// @event mouseout: MouseEvent
		// Fired when the mouse leaves the map.
		// @event mousemove: MouseEvent
		// Fired while the mouse moves over the map.
		// @event contextmenu: MouseEvent
		// Fired when the user pushes the right mouse button on the map, prevents
		// default browser context menu from showing if there are listeners on
		// this event. Also fired on mobile when the user holds a single touch
		// for a second (also called long press).
		// @event keypress: Event
		// Fired when the user presses a key from the keyboard while the map is focused.
		L.DomEvent[onOff](this._container, 'click dblclick mousedown mouseup ' +
			'mouseover mouseout mousemove contextmenu keypress', this._handleDOMEvent, this);

		if (this.options.trackResize) {
			L.DomEvent[onOff](window, 'resize', this._onResize, this);
		}

		if (L.Browser.any3d && this.options.transform3DLimit) {
			this[onOff]('moveend', this._onMoveEnd);
		}
	}
function (remove) {
		if (!L.DomEvent) { return; }

		this._targets = {};
		this._targets[L.stamp(this._container)] = this;

		var onOff = remove ? 'off' : 'on';

		// @event click: MouseEvent
		// Fired when the user clicks (or taps) the map.
		// @event dblclick: MouseEvent
		// Fired when the user double-clicks (or double-taps) the map.
		// @event mousedown: MouseEvent
		// Fired when the user pushes the mouse button on the map.
		// @event mouseup: MouseEvent
		// Fired when the user releases the mouse button on the map.
		// @event mouseover: MouseEvent
		// Fired when the mouse enters the map.
		// @event mouseout: MouseEvent
		// Fired when the mouse leaves the map.
		// @event mousemove: MouseEvent
		// Fired while the mouse moves over the map.
		// @event contextmenu: MouseEvent
		// Fired when the user pushes the right mouse button on the map, prevents
		// default browser context menu from showing if there are listeners on
		// this event. Also fired on mobile when the user holds a single touch
		// for a second (also called long press).
		// @event keypress: Event
		// Fired when the user presses a key from the keyboard while the map is focused.
		L.DomEvent[onOff](this._container, 'click dblclick mousedown mouseup ' +
			'mouseover mouseout mousemove contextmenu keypress', this._handleDOMEvent, this);

		if (this.options.trackResize) {
			L.DomEvent[onOff](window, 'resize', this._onResize, this);
		}

		if (L.Browser.any3d && this.options.transform3DLimit) {
			this[onOff]('moveend', this._onMoveEnd);
		}
	}
function ( remove ) { if ( ! L . DomEvent ) { return ; } this . _targets = { } ; this . _targets [ L . stamp ( this . _container ) ] = this ; var onOff = remove ? 'off' : 'on' ; // @event click: MouseEvent
 // Fired when the user clicks (or taps) the map.
 // @event dblclick: MouseEvent
 // Fired when the user double-clicks (or double-taps) the map.
 // @event mousedown: MouseEvent
 // Fired when the user pushes the mouse button on the map.
 // @event mouseup: MouseEvent
 // Fired when the user releases the mouse button on the map.
 // @event mouseover: MouseEvent
 // Fired when the mouse enters the map.
 // @event mouseout: MouseEvent
 // Fired when the mouse leaves the map.
 // @event mousemove: MouseEvent
 // Fired while the mouse moves over the map.
 // @event contextmenu: MouseEvent
 // Fired when the user pushes the right mouse button on the map, prevents
 // default browser context menu from showing if there are listeners on
 // this event. Also fired on mobile when the user holds a single touch
 // for a second (also called long press).
 // @event keypress: Event
 // Fired when the user presses a key from the keyboard while the map is focused.
 L . DomEvent [ onOff ] ( this . _container , 'click dblclick mousedown mouseup ' + 'mouseover mouseout mousemove contextmenu keypress' , this . _handleDOMEvent , this ) ; if ( this . options . trackResize ) { L . DomEvent [ onOff ] ( window , 'resize' , this . _onResize , this ) ; } if ( L . Browser . any3d && this . options . transform3DLimit ) { this [ onOff ] ( 'moveend' , this . _onMoveEnd ) ; } }
DOM event handling @section Interaction events
DOM event handling