dist/jcanvas.js
function _triggerLayerEvent($canvas, data, layer, eventType, arg) {
	// If layer can legally fire this event type
	if (_layerCanFireEvent(layer, eventType)) {

		// Do not set a custom cursor on layer mouseout
		if (eventType !== 'mouseout') {
			// Update cursor if one is defined for this event
			_setCursor($canvas, layer, eventType);
		}

		// Trigger the user-defined event callback
		_runEventCallback($canvas, layer, eventType, layer, arg);
		// Trigger the canvas-bound event hook
		_runEventCallback($canvas, layer, eventType, data.eventHooks, arg);
		// Trigger the global event hook
		_runEventCallback($canvas, layer, eventType, jCanvas.eventHooks, arg);

	}
}
function _triggerLayerEvent($canvas, data, layer, eventType, arg) {
	// If layer can legally fire this event type
	if (_layerCanFireEvent(layer, eventType)) {

		// Do not set a custom cursor on layer mouseout
		if (eventType !== 'mouseout') {
			// Update cursor if one is defined for this event
			_setCursor($canvas, layer, eventType);
		}

		// Trigger the user-defined event callback
		_runEventCallback($canvas, layer, eventType, layer, arg);
		// Trigger the canvas-bound event hook
		_runEventCallback($canvas, layer, eventType, data.eventHooks, arg);
		// Trigger the global event hook
		_runEventCallback($canvas, layer, eventType, jCanvas.eventHooks, arg);

	}
}
function _triggerLayerEvent ( $canvas , data , layer , eventType , arg ) { // If layer can legally fire this event type if ( _layerCanFireEvent ( layer , eventType ) ) { // Do not set a custom cursor on layer mouseout if ( eventType !== 'mouseout' ) { // Update cursor if one is defined for this event _setCursor ( $canvas , layer , eventType ) ; } // Trigger the user-defined event callback _runEventCallback ( $canvas , layer , eventType , layer , arg ) ; // Trigger the canvas-bound event hook _runEventCallback ( $canvas , layer , eventType , data . eventHooks , arg ) ; // Trigger the global event hook _runEventCallback ( $canvas , layer , eventType , jCanvas . eventHooks , arg ) ; } }
Trigger the given event on the given layer
Trigger the given event on the given layer