MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / _handleDOMEvent

Method _handleDOMEvent

src/core/runtime/reactivity.js:391–404  ·  view source on GitHub ↗

* Handle delegated input/change events. Dispatches to property and * query subscriptions. * @param {Event} event

(event)

Source from the content-addressed store, hash-verified

389 * @param {Event} event
390 */
391 _handleDOMEvent(event) {
392 var el = event.target;
393 if (!(el instanceof Element)) return;
394 var state = this._objectState.get(el);
395 if (state) {
396 var subs = this._propertySubscriptions.get(state.id);
397 if (subs) {
398 for (var effect of subs) {
399 this._scheduleEffect(effect);
400 }
401 }
402 }
403 this._scheduleQueryEffects(el);
404 }
405
406 /**
407 * Schedule effects watching a specific attribute on a specific element.

Callers 1

_initGlobalObserverMethod · 0.45

Calls 3

_scheduleEffectMethod · 0.95
_scheduleQueryEffectsMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected