cash icon indicating copy to clipboard operation
cash copied to clipboard

$.fn.trigger() - preventDeafult() flag

Open Valexr opened this issue 2 years ago • 1 comments

Feature description

Add to collection method trigger(event, data, prevent) prevent: boolean flag for prevent defaults events from trigger node.

Feature motivation

This needed to replace triggerHandler() JQ method.

Is this feature present in jQuery? Yes

Valexr avatar Apr 22 '22 10:04 Valexr

I'm not sure what you mean by this 🤔 jQuery doesn't have such a flag, does it?

I don't think triggerHandler is implementable in Cash. There's no API for retrieving the list of event handlers attached to a node, and we don't have a synthetic event system like jQuery's.

fabiospampinato avatar Apr 23 '22 14:04 fabiospampinato

Closing for inactivity.

fabiospampinato avatar Nov 16 '22 00:11 fabiospampinato