Class: Helper

Helper()

new Helper()

Global functions
Source:

Methods

(static) $delegate(target, selector, type, handler)

Delegate an eventListener to a parent Using in View.
Parameters:
Name Type Description
target object The target..
selector function Check if there is a match between childrens and parents.
type bolean Event type.
handler function A callback executed if there is a certain condition.
Source:

(static) $on(target, type, callback, useCapture)

Encapsulates the addEventListener. Using in View. Using in App.
Parameters:
Name Type Description
target object The target.
type bolean Focus or Blur.
callback function The callback function.
useCapture object The catched element.
Source:

(static) $parent(element, (tagName))

Finds the parent of the element with the tag name : $parent(qs('a'), 'div'); Using in View.
Parameters:
Name Type Description
element object The active element.
(tagName) string The element tagName.
Source:

(static) qs()

Get element(s) by CSS selector: qs = querySelector Using in dans View.
Source:

(static) qsa()

Get element(s) by CSS selector: qsa = querySelectorAll Using in View.
Source: