Class: Snippets

snippets~Snippets

snippets implementation.

Source:

Members

(private) _filters :Set.<module:filterClasses.SnippetFilter>

All known snippet filters.

Type:
Source:

Methods

add(filter)

Adds a new snippet filter.

Parameters:
Name Type Description
filter module:filterClasses.SnippetFilter
Source:

clear()

Removes all known snippet filters.

Source:

getFilters(domain) → {Array.<module:filterClasses.SnippetFilter>}

Returns a list of all snippet filters active on the given domain.

Parameters:
Name Type Description
domain string

The domain.

Source:
Returns:

A list of snippet filters.

Type
Array.<module:filterClasses.SnippetFilter>

getFiltersForDomain(domain) → {Array.<module:filterClasses.SnippetFilter>}

Returns a list of all snippet filters active on the given domain.

Parameters:
Name Type Description
domain string

The domain.

Deprecated:
Source:
See:
Returns:

A list of snippet filters.

Type
Array.<module:filterClasses.SnippetFilter>

has(filter) → {boolean}

Checks whether a snippet filter exists.

Parameters:
Name Type Description
filter module:filterClasses.SnippetFilter
Source:
Returns:
Type
boolean

remove(filter)

Removes an existing snippet filter.

Parameters:
Name Type Description
filter module:filterClasses.SnippetFilter
Source: