repo
stringlengths
5
67
path
stringlengths
4
116
func_name
stringlengths
0
58
original_string
stringlengths
52
373k
language
stringclasses
1 value
code
stringlengths
52
373k
code_tokens
list
docstring
stringlengths
4
11.8k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
86
226
partition
stringclasses
1 value
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
isNodeMatchingSelector
function isNodeMatchingSelector(tNode, selector) { ngDevMode && assertDefined(selector[0], 'Selector should have a tag name'); var mode = 4 /* ELEMENT */; var nodeAttrs = tNode.attrs; var selectOnlyMarkerIdx = nodeAttrs ? nodeAttrs.indexOf(1 /* SelectOnly */) : -1; // When processing ":not" selector...
javascript
function isNodeMatchingSelector(tNode, selector) { ngDevMode && assertDefined(selector[0], 'Selector should have a tag name'); var mode = 4 /* ELEMENT */; var nodeAttrs = tNode.attrs; var selectOnlyMarkerIdx = nodeAttrs ? nodeAttrs.indexOf(1 /* SelectOnly */) : -1; // When processing ":not" selector...
[ "function", "isNodeMatchingSelector", "(", "tNode", ",", "selector", ")", "{", "ngDevMode", "&&", "assertDefined", "(", "selector", "[", "0", "]", ",", "'Selector should have a tag name'", ")", ";", "var", "mode", "=", "4", "/* ELEMENT */", ";", "var", "nodeAttr...
A utility function to match an Ivy node static data against a simple CSS selector @param node static data to match @param selector @returns true if node matches the selector.
[ "A", "utility", "function", "to", "match", "an", "Ivy", "node", "static", "data", "against", "a", "simple", "CSS", "selector" ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L20794-L20858
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
findAttrIndexInNode
function findAttrIndexInNode(name, attrs) { if (attrs === null) return -1; var selectOnlyMode = false; var i = 0; while (i < attrs.length) { var maybeAttrName = attrs[i]; if (maybeAttrName === name) { return i; } else if (maybeAttrName === 0 /* Namespa...
javascript
function findAttrIndexInNode(name, attrs) { if (attrs === null) return -1; var selectOnlyMode = false; var i = 0; while (i < attrs.length) { var maybeAttrName = attrs[i]; if (maybeAttrName === name) { return i; } else if (maybeAttrName === 0 /* Namespa...
[ "function", "findAttrIndexInNode", "(", "name", ",", "attrs", ")", "{", "if", "(", "attrs", "===", "null", ")", "return", "-", "1", ";", "var", "selectOnlyMode", "=", "false", ";", "var", "i", "=", "0", ";", "while", "(", "i", "<", "attrs", ".", "l...
Examines an attributes definition array from a node to find the index of the attribute with the specified name. NOTE: Will not find namespaced attributes. @param name the name of the attribute to find @param attrs the attribute array to examine
[ "Examines", "an", "attributes", "definition", "array", "from", "a", "node", "to", "find", "the", "index", "of", "the", "attribute", "with", "the", "specified", "name", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L20871-L20893
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
renderStyling
function renderStyling(context, renderer, styleStore, classStore) { if (isContextDirty(context)) { var native = context[0 /* ElementPosition */].native; var multiStartIndex = getMultiStartIndex(context); var styleSanitizer = getStyleSanitizer(context); for (var i = 6 /* SingleStylesS...
javascript
function renderStyling(context, renderer, styleStore, classStore) { if (isContextDirty(context)) { var native = context[0 /* ElementPosition */].native; var multiStartIndex = getMultiStartIndex(context); var styleSanitizer = getStyleSanitizer(context); for (var i = 6 /* SingleStylesS...
[ "function", "renderStyling", "(", "context", ",", "renderer", ",", "styleStore", ",", "classStore", ")", "{", "if", "(", "isContextDirty", "(", "context", ")", ")", "{", "var", "native", "=", "context", "[", "0", "/* ElementPosition */", "]", ".", "native", ...
Renders all queued styling using a renderer onto the given element. This function works by rendering any styles (that have been applied using `updateStylingMap`) and any classes (that have been applied using `updateStyleProp`) onto the provided element using the provided renderer. Just before the styles/classes are re...
[ "Renders", "all", "queued", "styling", "using", "a", "renderer", "onto", "the", "given", "element", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L21271-L21314
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
enterView
function enterView(newView, host) { var oldView = viewData; directives = newView && newView[DIRECTIVES]; tView = newView && newView[TVIEW]; creationMode = newView && (newView[FLAGS] & 1 /* CreationMode */) === 1 /* CreationMode */; firstTemplatePass = newView && tView.firstTemplatePass; renderer...
javascript
function enterView(newView, host) { var oldView = viewData; directives = newView && newView[DIRECTIVES]; tView = newView && newView[TVIEW]; creationMode = newView && (newView[FLAGS] & 1 /* CreationMode */) === 1 /* CreationMode */; firstTemplatePass = newView && tView.firstTemplatePass; renderer...
[ "function", "enterView", "(", "newView", ",", "host", ")", "{", "var", "oldView", "=", "viewData", ";", "directives", "=", "newView", "&&", "newView", "[", "DIRECTIVES", "]", ";", "tView", "=", "newView", "&&", "newView", "[", "TVIEW", "]", ";", "creatio...
Swap the current state with a new state. For performance reasons we store the state in the top level of the module. This way we minimize the number of properties to read. Whenever a new view is entered we have to store the state for later, and when the view is exited the state has to be restored @param newView New st...
[ "Swap", "the", "current", "state", "with", "a", "new", "state", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L21681-L21695
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
setHostBindings
function setHostBindings(bindings) { if (bindings != null) { var defs = tView.directives; for (var i = 0; i < bindings.length; i += 2) { var dirIndex = bindings[i]; var def = defs[dirIndex]; def.hostBindings && def.hostBindings(dirIndex, bindings[i + 1]); ...
javascript
function setHostBindings(bindings) { if (bindings != null) { var defs = tView.directives; for (var i = 0; i < bindings.length; i += 2) { var dirIndex = bindings[i]; var def = defs[dirIndex]; def.hostBindings && def.hostBindings(dirIndex, bindings[i + 1]); ...
[ "function", "setHostBindings", "(", "bindings", ")", "{", "if", "(", "bindings", "!=", "null", ")", "{", "var", "defs", "=", "tView", ".", "directives", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "bindings", ".", "length", ";", "i", "+="...
Sets the host bindings for the current view.
[ "Sets", "the", "host", "bindings", "for", "the", "current", "view", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L21738-L21747
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
refreshContentQueries
function refreshContentQueries(tView) { if (tView.contentQueries != null) { for (var i = 0; i < tView.contentQueries.length; i += 2) { var directiveDefIdx = tView.contentQueries[i]; var directiveDef = tView.directives[directiveDefIdx]; directiveDef.contentQueriesRefresh(d...
javascript
function refreshContentQueries(tView) { if (tView.contentQueries != null) { for (var i = 0; i < tView.contentQueries.length; i += 2) { var directiveDefIdx = tView.contentQueries[i]; var directiveDef = tView.directives[directiveDefIdx]; directiveDef.contentQueriesRefresh(d...
[ "function", "refreshContentQueries", "(", "tView", ")", "{", "if", "(", "tView", ".", "contentQueries", "!=", "null", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "tView", ".", "contentQueries", ".", "length", ";", "i", "+=", "2", ")", ...
Refreshes content queries for all directives in the given view.
[ "Refreshes", "content", "queries", "for", "all", "directives", "in", "the", "given", "view", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L21749-L21757
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
refreshChildComponents
function refreshChildComponents(components) { if (components != null) { for (var i = 0; i < components.length; i += 2) { componentRefresh(components[i], components[i + 1]); } } }
javascript
function refreshChildComponents(components) { if (components != null) { for (var i = 0; i < components.length; i += 2) { componentRefresh(components[i], components[i + 1]); } } }
[ "function", "refreshChildComponents", "(", "components", ")", "{", "if", "(", "components", "!=", "null", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "components", ".", "length", ";", "i", "+=", "2", ")", "{", "componentRefresh", "(", ...
Refreshes child components in the current view.
[ "Refreshes", "child", "components", "in", "the", "current", "view", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L21759-L21765
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
elementCreate
function elementCreate(name, overriddenRenderer) { var native; var rendererToUse = overriddenRenderer || renderer; if (isProceduralRenderer(rendererToUse)) { native = rendererToUse.createElement(name, _currentNamespace); } else { if (_currentNamespace === null) { native =...
javascript
function elementCreate(name, overriddenRenderer) { var native; var rendererToUse = overriddenRenderer || renderer; if (isProceduralRenderer(rendererToUse)) { native = rendererToUse.createElement(name, _currentNamespace); } else { if (_currentNamespace === null) { native =...
[ "function", "elementCreate", "(", "name", ",", "overriddenRenderer", ")", "{", "var", "native", ";", "var", "rendererToUse", "=", "overriddenRenderer", "||", "renderer", ";", "if", "(", "isProceduralRenderer", "(", "rendererToUse", ")", ")", "{", "native", "=", ...
Creates a native element from a tag name, using a renderer. @param name the tag name @param overriddenRenderer Optional A renderer to override the default one @returns the element created
[ "Creates", "a", "native", "element", "from", "a", "tag", "name", "using", "a", "renderer", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22036-L22051
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
createDirectivesAndLocals
function createDirectivesAndLocals(localRefs) { var node = previousOrParentNode; if (firstTemplatePass) { ngDevMode && ngDevMode.firstTemplatePass++; cacheMatchingDirectivesForNode(node.tNode, tView, localRefs || null); } else { instantiateDirectivesDirectly(); } saveReso...
javascript
function createDirectivesAndLocals(localRefs) { var node = previousOrParentNode; if (firstTemplatePass) { ngDevMode && ngDevMode.firstTemplatePass++; cacheMatchingDirectivesForNode(node.tNode, tView, localRefs || null); } else { instantiateDirectivesDirectly(); } saveReso...
[ "function", "createDirectivesAndLocals", "(", "localRefs", ")", "{", "var", "node", "=", "previousOrParentNode", ";", "if", "(", "firstTemplatePass", ")", "{", "ngDevMode", "&&", "ngDevMode", ".", "firstTemplatePass", "++", ";", "cacheMatchingDirectivesForNode", "(", ...
Creates directive instances and populates local refs. @param localRefs Local refs of the current node
[ "Creates", "directive", "instances", "and", "populates", "local", "refs", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22057-L22067
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
findDirectiveMatches
function findDirectiveMatches(tNode) { var registry = tView.directiveRegistry; var matches = null; if (registry) { for (var i = 0; i < registry.length; i++) { var def = registry[i]; if (isNodeMatchingSelectorList(tNode, def.selectors)) { if (def.template) { ...
javascript
function findDirectiveMatches(tNode) { var registry = tView.directiveRegistry; var matches = null; if (registry) { for (var i = 0; i < registry.length; i++) { var def = registry[i]; if (isNodeMatchingSelectorList(tNode, def.selectors)) { if (def.template) { ...
[ "function", "findDirectiveMatches", "(", "tNode", ")", "{", "var", "registry", "=", "tView", ".", "directiveRegistry", ";", "var", "matches", "=", "null", ";", "if", "(", "registry", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "registry"...
Matches the current node against all available selectors.
[ "Matches", "the", "current", "node", "against", "all", "available", "selectors", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22089-L22108
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
queueComponentIndexForCheck
function queueComponentIndexForCheck(dirIndex) { if (firstTemplatePass) { (tView.components || (tView.components = [])).push(dirIndex, viewData.length - 1); } }
javascript
function queueComponentIndexForCheck(dirIndex) { if (firstTemplatePass) { (tView.components || (tView.components = [])).push(dirIndex, viewData.length - 1); } }
[ "function", "queueComponentIndexForCheck", "(", "dirIndex", ")", "{", "if", "(", "firstTemplatePass", ")", "{", "(", "tView", ".", "components", "||", "(", "tView", ".", "components", "=", "[", "]", ")", ")", ".", "push", "(", "dirIndex", ",", "viewData", ...
Stores index of component's host element so it will be queued for view refresh during CD.
[ "Stores", "index", "of", "component", "s", "host", "element", "so", "it", "will", "be", "queued", "for", "view", "refresh", "during", "CD", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22123-L22127
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
queueHostBindingForCheck
function queueHostBindingForCheck(dirIndex) { // Must subtract the header offset because hostBindings functions are generated with // instructions that expect element indices that are NOT adjusted (e.g. elementProperty). ngDevMode && assertEqual(firstTemplatePass, true, 'Should only be called in fir...
javascript
function queueHostBindingForCheck(dirIndex) { // Must subtract the header offset because hostBindings functions are generated with // instructions that expect element indices that are NOT adjusted (e.g. elementProperty). ngDevMode && assertEqual(firstTemplatePass, true, 'Should only be called in fir...
[ "function", "queueHostBindingForCheck", "(", "dirIndex", ")", "{", "// Must subtract the header offset because hostBindings functions are generated with", "// instructions that expect element indices that are NOT adjusted (e.g. elementProperty).", "ngDevMode", "&&", "assertEqual", "(", "firs...
Stores index of directive and host element so it will be queued for binding refresh during CD.
[ "Stores", "index", "of", "directive", "and", "host", "element", "so", "it", "will", "be", "queued", "for", "binding", "refresh", "during", "CD", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22130-L22136
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
initChangeDetectorIfExisting
function initChangeDetectorIfExisting(injector, instance, view) { if (injector && injector.changeDetectorRef != null) { injector.changeDetectorRef._setComponentContext(view, instance); } }
javascript
function initChangeDetectorIfExisting(injector, instance, view) { if (injector && injector.changeDetectorRef != null) { injector.changeDetectorRef._setComponentContext(view, instance); } }
[ "function", "initChangeDetectorIfExisting", "(", "injector", ",", "instance", ",", "view", ")", "{", "if", "(", "injector", "&&", "injector", ".", "changeDetectorRef", "!=", "null", ")", "{", "injector", ".", "changeDetectorRef", ".", "_setComponentContext", "(", ...
Sets the context for a ChangeDetectorRef to the given instance.
[ "Sets", "the", "context", "for", "a", "ChangeDetectorRef", "to", "the", "given", "instance", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22138-L22142
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
instantiateDirectivesDirectly
function instantiateDirectivesDirectly() { var tNode = previousOrParentNode.tNode; var count = tNode.flags & 4095 /* DirectiveCountMask */; if (count > 0) { var start = tNode.flags >> 14 /* DirectiveStartingIndexShift */; var end = start + count; var tDirectives = tView.directives; ...
javascript
function instantiateDirectivesDirectly() { var tNode = previousOrParentNode.tNode; var count = tNode.flags & 4095 /* DirectiveCountMask */; if (count > 0) { var start = tNode.flags >> 14 /* DirectiveStartingIndexShift */; var end = start + count; var tDirectives = tView.directives; ...
[ "function", "instantiateDirectivesDirectly", "(", ")", "{", "var", "tNode", "=", "previousOrParentNode", ".", "tNode", ";", "var", "count", "=", "tNode", ".", "flags", "&", "4095", "/* DirectiveCountMask */", ";", "if", "(", "count", ">", "0", ")", "{", "var...
This function instantiates the given directives.
[ "This", "function", "instantiates", "the", "given", "directives", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22149-L22161
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
cacheMatchingLocalNames
function cacheMatchingLocalNames(tNode, localRefs, exportsMap) { if (localRefs) { var localNames = tNode.localNames = []; // Local names must be stored in tNode in the same order that localRefs are defined // in the template to ensure the data is loaded in the same slots as their refs ...
javascript
function cacheMatchingLocalNames(tNode, localRefs, exportsMap) { if (localRefs) { var localNames = tNode.localNames = []; // Local names must be stored in tNode in the same order that localRefs are defined // in the template to ensure the data is loaded in the same slots as their refs ...
[ "function", "cacheMatchingLocalNames", "(", "tNode", ",", "localRefs", ",", "exportsMap", ")", "{", "if", "(", "localRefs", ")", "{", "var", "localNames", "=", "tNode", ".", "localNames", "=", "[", "]", ";", "// Local names must be stored in tNode in the same order ...
Caches local names and their matching directive indices for query and template lookups.
[ "Caches", "local", "names", "and", "their", "matching", "directive", "indices", "for", "query", "and", "template", "lookups", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22163-L22176
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
saveNameToExportMap
function saveNameToExportMap(index, def, exportsMap) { if (exportsMap) { if (def.exportAs) exportsMap[def.exportAs] = index; if (def.template) exportsMap[''] = index; } }
javascript
function saveNameToExportMap(index, def, exportsMap) { if (exportsMap) { if (def.exportAs) exportsMap[def.exportAs] = index; if (def.template) exportsMap[''] = index; } }
[ "function", "saveNameToExportMap", "(", "index", ",", "def", ",", "exportsMap", ")", "{", "if", "(", "exportsMap", ")", "{", "if", "(", "def", ".", "exportAs", ")", "exportsMap", "[", "def", ".", "exportAs", "]", "=", "index", ";", "if", "(", "def", ...
Builds up an export map as directives are created, so local refs can be quickly mapped to their directive instances.
[ "Builds", "up", "an", "export", "map", "as", "directives", "are", "created", "so", "local", "refs", "can", "be", "quickly", "mapped", "to", "their", "directive", "instances", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22181-L22188
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getOrCreateTView
function getOrCreateTView(template, directives, pipes, viewQuery) { // TODO(misko): reading `ngPrivateData` here is problematic for two reasons // 1. It is a megamorphic call on each invocation. // 2. For nested embedded views (ngFor inside ngFor) the template instance is per // outer template invoca...
javascript
function getOrCreateTView(template, directives, pipes, viewQuery) { // TODO(misko): reading `ngPrivateData` here is problematic for two reasons // 1. It is a megamorphic call on each invocation. // 2. For nested embedded views (ngFor inside ngFor) the template instance is per // outer template invoca...
[ "function", "getOrCreateTView", "(", "template", ",", "directives", ",", "pipes", ",", "viewQuery", ")", "{", "// TODO(misko): reading `ngPrivateData` here is problematic for two reasons", "// 1. It is a megamorphic call on each invocation.", "// 2. For nested embedded views (ngFor insid...
Gets TView from a template function or creates a new TView if it doesn't already exist. @param template The template from which to get static data @param directives Directive defs that should be saved on TView @param pipes Pipe defs that should be saved on TView @returns TView
[ "Gets", "TView", "from", "a", "template", "function", "or", "creates", "a", "new", "TView", "if", "it", "doesn", "t", "already", "exist", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22212-L22221
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
createTView
function createTView(viewIndex, template, directives, pipes, viewQuery) { ngDevMode && ngDevMode.tView++; return { id: viewIndex, template: template, viewQuery: viewQuery, node: null, data: HEADER_FILLER.slice(), childIndex: -1, bindingStartIndex: -1, ...
javascript
function createTView(viewIndex, template, directives, pipes, viewQuery) { ngDevMode && ngDevMode.tView++; return { id: viewIndex, template: template, viewQuery: viewQuery, node: null, data: HEADER_FILLER.slice(), childIndex: -1, bindingStartIndex: -1, ...
[ "function", "createTView", "(", "viewIndex", ",", "template", ",", "directives", ",", "pipes", ",", "viewQuery", ")", "{", "ngDevMode", "&&", "ngDevMode", ".", "tView", "++", ";", "return", "{", "id", ":", "viewIndex", ",", "template", ":", "template", ","...
Creates a TView instance @param viewIndex The viewBlockId for inline views, or -1 if it's a component/dynamic @param directives Registry of directives for this view @param pipes Registry of pipes for this view
[ "Creates", "a", "TView", "instance" ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22229-L22257
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
locateHostElement
function locateHostElement(factory, elementOrSelector) { ngDevMode && assertDataInRange(-1); rendererFactory = factory; var defaultRenderer = factory.createRenderer(null, null); var rNode = typeof elementOrSelector === 'string' ? (isProceduralRenderer(defaultRenderer) ? defaultRender...
javascript
function locateHostElement(factory, elementOrSelector) { ngDevMode && assertDataInRange(-1); rendererFactory = factory; var defaultRenderer = factory.createRenderer(null, null); var rNode = typeof elementOrSelector === 'string' ? (isProceduralRenderer(defaultRenderer) ? defaultRender...
[ "function", "locateHostElement", "(", "factory", ",", "elementOrSelector", ")", "{", "ngDevMode", "&&", "assertDataInRange", "(", "-", "1", ")", ";", "rendererFactory", "=", "factory", ";", "var", "defaultRenderer", "=", "factory", ".", "createRenderer", "(", "n...
Locates the host native element, used for bootstrapping existing nodes into rendering pipeline. @param elementOrSelector Render element or CSS selector to locate the element.
[ "Locates", "the", "host", "native", "element", "used", "for", "bootstrapping", "existing", "nodes", "into", "rendering", "pipeline", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22301-L22319
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
hostElement
function hostElement(tag, rNode, def, sanitizer) { resetApplicationState(); var node = createLNode(0, 3 /* Element */, rNode, null, null, createLViewData(renderer, getOrCreateTView(def.template, def.directiveDefs, def.pipeDefs, def.viewQuery), null, def.onPush ? 4 /* Dirty */ : 2 /* CheckAlways */, sanitizer));...
javascript
function hostElement(tag, rNode, def, sanitizer) { resetApplicationState(); var node = createLNode(0, 3 /* Element */, rNode, null, null, createLViewData(renderer, getOrCreateTView(def.template, def.directiveDefs, def.pipeDefs, def.viewQuery), null, def.onPush ? 4 /* Dirty */ : 2 /* CheckAlways */, sanitizer));...
[ "function", "hostElement", "(", "tag", ",", "rNode", ",", "def", ",", "sanitizer", ")", "{", "resetApplicationState", "(", ")", ";", "var", "node", "=", "createLNode", "(", "0", ",", "3", "/* Element */", ",", "rNode", ",", "null", ",", "null", ",", "c...
Creates the host LNode. @param rNode Render host element. @param def ComponentDef @returns LElementNode created
[ "Creates", "the", "host", "LNode", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22328-L22338
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
listener
function listener(eventName, listenerFn, useCapture) { if (useCapture === void 0) { useCapture = false; } ngDevMode && assertPreviousIsParent(); var node = previousOrParentNode; var native = node.native; ngDevMode && ngDevMode.rendererAddEventListener++; // In order to match current behavior, na...
javascript
function listener(eventName, listenerFn, useCapture) { if (useCapture === void 0) { useCapture = false; } ngDevMode && assertPreviousIsParent(); var node = previousOrParentNode; var native = node.native; ngDevMode && ngDevMode.rendererAddEventListener++; // In order to match current behavior, na...
[ "function", "listener", "(", "eventName", ",", "listenerFn", ",", "useCapture", ")", "{", "if", "(", "useCapture", "===", "void", "0", ")", "{", "useCapture", "=", "false", ";", "}", "ngDevMode", "&&", "assertPreviousIsParent", "(", ")", ";", "var", "node"...
Adds an event listener to the current node. If an output exists on one of the node's directives, it also subscribes to the output and saves the subscription for later cleanup. @param eventName Name of the event @param listenerFn The function to be called when event emits @param useCapture Whether or not to use captur...
[ "Adds", "an", "event", "listener", "to", "the", "current", "node", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22349-L22382
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
createOutput
function createOutput(outputs, listener) { for (var i = 0; i < outputs.length; i += 2) { ngDevMode && assertDataInRange(outputs[i], directives); var subscription = directives[outputs[i]][outputs[i + 1]].subscribe(listener); storeCleanupWithContext(viewData, subscription, subscription.unsubsc...
javascript
function createOutput(outputs, listener) { for (var i = 0; i < outputs.length; i += 2) { ngDevMode && assertDataInRange(outputs[i], directives); var subscription = directives[outputs[i]][outputs[i + 1]].subscribe(listener); storeCleanupWithContext(viewData, subscription, subscription.unsubsc...
[ "function", "createOutput", "(", "outputs", ",", "listener", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "outputs", ".", "length", ";", "i", "+=", "2", ")", "{", "ngDevMode", "&&", "assertDataInRange", "(", "outputs", "[", "i", "]", ...
Iterates through the outputs associated with a particular event name and subscribes to each output.
[ "Iterates", "through", "the", "outputs", "associated", "with", "a", "particular", "event", "name", "and", "subscribes", "to", "each", "output", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22387-L22393
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
storeCleanupWithContext
function storeCleanupWithContext(view, context, cleanupFn) { if (!view) view = viewData; getCleanup(view).push(context); if (view[TVIEW].firstTemplatePass) { getTViewCleanup(view).push(cleanupFn, view[CLEANUP].length - 1); } }
javascript
function storeCleanupWithContext(view, context, cleanupFn) { if (!view) view = viewData; getCleanup(view).push(context); if (view[TVIEW].firstTemplatePass) { getTViewCleanup(view).push(cleanupFn, view[CLEANUP].length - 1); } }
[ "function", "storeCleanupWithContext", "(", "view", ",", "context", ",", "cleanupFn", ")", "{", "if", "(", "!", "view", ")", "view", "=", "viewData", ";", "getCleanup", "(", "view", ")", ".", "push", "(", "context", ")", ";", "if", "(", "view", "[", ...
Saves context for this cleanup function in LView.cleanupInstances. On the first template pass, saves in TView: - Cleanup function - Index of context we just saved in LView.cleanupInstances
[ "Saves", "context", "for", "this", "cleanup", "function", "in", "LView", ".", "cleanupInstances", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22401-L22408
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
storeCleanupFn
function storeCleanupFn(view, cleanupFn) { getCleanup(view).push(cleanupFn); if (view[TVIEW].firstTemplatePass) { getTViewCleanup(view).push(view[CLEANUP].length - 1, null); } }
javascript
function storeCleanupFn(view, cleanupFn) { getCleanup(view).push(cleanupFn); if (view[TVIEW].firstTemplatePass) { getTViewCleanup(view).push(view[CLEANUP].length - 1, null); } }
[ "function", "storeCleanupFn", "(", "view", ",", "cleanupFn", ")", "{", "getCleanup", "(", "view", ")", ".", "push", "(", "cleanupFn", ")", ";", "if", "(", "view", "[", "TVIEW", "]", ".", "firstTemplatePass", ")", "{", "getTViewCleanup", "(", "view", ")",...
Saves the cleanup function itself in LView.cleanupInstances. This is necessary for functions that are wrapped with their contexts, like in renderer2 listeners. On the first template pass, the index of the cleanup function is saved in TView.
[ "Saves", "the", "cleanup", "function", "itself", "in", "LView", ".", "cleanupInstances", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22417-L22422
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
elementEnd
function elementEnd() { if (isParent) { isParent = false; } else { ngDevMode && assertHasParent(); previousOrParentNode = getParentLNode(previousOrParentNode); } ngDevMode && assertNodeType(previousOrParentNode, 3 /* Element */); var queries = previousOrParentNode.queries...
javascript
function elementEnd() { if (isParent) { isParent = false; } else { ngDevMode && assertHasParent(); previousOrParentNode = getParentLNode(previousOrParentNode); } ngDevMode && assertNodeType(previousOrParentNode, 3 /* Element */); var queries = previousOrParentNode.queries...
[ "function", "elementEnd", "(", ")", "{", "if", "(", "isParent", ")", "{", "isParent", "=", "false", ";", "}", "else", "{", "ngDevMode", "&&", "assertHasParent", "(", ")", ";", "previousOrParentNode", "=", "getParentLNode", "(", "previousOrParentNode", ")", "...
Mark the end of the element.
[ "Mark", "the", "end", "of", "the", "element", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22424-L22437
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
elementAttribute
function elementAttribute(index, name, value, sanitizer) { if (value !== NO_CHANGE) { var element_1 = loadElement(index); if (value == null) { ngDevMode && ngDevMode.rendererRemoveAttribute++; isProceduralRenderer(renderer) ? renderer.removeAttribute(element_1.native, name) :...
javascript
function elementAttribute(index, name, value, sanitizer) { if (value !== NO_CHANGE) { var element_1 = loadElement(index); if (value == null) { ngDevMode && ngDevMode.rendererRemoveAttribute++; isProceduralRenderer(renderer) ? renderer.removeAttribute(element_1.native, name) :...
[ "function", "elementAttribute", "(", "index", ",", "name", ",", "value", ",", "sanitizer", ")", "{", "if", "(", "value", "!==", "NO_CHANGE", ")", "{", "var", "element_1", "=", "loadElement", "(", "index", ")", ";", "if", "(", "value", "==", "null", ")"...
Updates the value of removes an attribute on an Element. @param number index The index of the element in the data array @param name name The name of the attribute. @param value value The attribute is removed when value is `null` or `undefined`. Otherwise the attribute value is set to the stringified value. @param sani...
[ "Updates", "the", "value", "of", "removes", "an", "attribute", "on", "an", "Element", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22447-L22462
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
elementProperty
function elementProperty(index, propName, value, sanitizer) { if (value === NO_CHANGE) return; var node = loadElement(index); var tNode = node.tNode; // if tNode.inputs is undefined, a listener has created outputs, but inputs haven't // yet been checked if (tNode && tNode.inputs === unde...
javascript
function elementProperty(index, propName, value, sanitizer) { if (value === NO_CHANGE) return; var node = loadElement(index); var tNode = node.tNode; // if tNode.inputs is undefined, a listener has created outputs, but inputs haven't // yet been checked if (tNode && tNode.inputs === unde...
[ "function", "elementProperty", "(", "index", ",", "propName", ",", "value", ",", "sanitizer", ")", "{", "if", "(", "value", "===", "NO_CHANGE", ")", "return", ";", "var", "node", "=", "loadElement", "(", "index", ")", ";", "var", "tNode", "=", "node", ...
Update a property on an Element. If the property name also exists as an input property on one of the element's directives, the component property will be set instead of the element property. This check must be conducted at runtime so child components that add new @Inputs don't have to be re-compiled. @param index The...
[ "Update", "a", "property", "on", "an", "Element", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22476-L22503
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
createTNode
function createTNode(type, adjustedIndex, tagName, attrs, parent, tViews) { ngDevMode && ngDevMode.tNode++; return { type: type, index: adjustedIndex, flags: 0, tagName: tagName, attrs: attrs, localNames: null, initialInputs: undefined, inputs: und...
javascript
function createTNode(type, adjustedIndex, tagName, attrs, parent, tViews) { ngDevMode && ngDevMode.tNode++; return { type: type, index: adjustedIndex, flags: 0, tagName: tagName, attrs: attrs, localNames: null, initialInputs: undefined, inputs: und...
[ "function", "createTNode", "(", "type", ",", "adjustedIndex", ",", "tagName", ",", "attrs", ",", "parent", ",", "tViews", ")", "{", "ngDevMode", "&&", "ngDevMode", ".", "tNode", "++", ";", "return", "{", "type", ":", "type", ",", "index", ":", "adjustedI...
Constructs a TNode object from the arguments. @param type The type of the node @param adjustedIndex The index of the TNode in TView.data, adjusted for HEADER_OFFSET @param tagName The tag name of the node @param attrs The attributes defined on this node @param parent The parent of this node @param tViews Any TViews at...
[ "Constructs", "a", "TNode", "object", "from", "the", "arguments", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22515-L22536
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
setInputsForProperty
function setInputsForProperty(inputs, value) { for (var i = 0; i < inputs.length; i += 2) { ngDevMode && assertDataInRange(inputs[i], directives); directives[inputs[i]][inputs[i + 1]] = value; } }
javascript
function setInputsForProperty(inputs, value) { for (var i = 0; i < inputs.length; i += 2) { ngDevMode && assertDataInRange(inputs[i], directives); directives[inputs[i]][inputs[i + 1]] = value; } }
[ "function", "setInputsForProperty", "(", "inputs", ",", "value", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "inputs", ".", "length", ";", "i", "+=", "2", ")", "{", "ngDevMode", "&&", "assertDataInRange", "(", "inputs", "[", "i", "]", ...
Given a list of directive indices and minified input names, sets the input properties on the corresponding directives.
[ "Given", "a", "list", "of", "directive", "indices", "and", "minified", "input", "names", "sets", "the", "input", "properties", "on", "the", "corresponding", "directives", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22541-L22546
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
generatePropertyAliases
function generatePropertyAliases(tNodeFlags, direction) { var count = tNodeFlags & 4095 /* DirectiveCountMask */; var propStore = null; if (count > 0) { var start = tNodeFlags >> 14 /* DirectiveStartingIndexShift */; var end = start + count; var isInput = direction === 0 /* Input */;...
javascript
function generatePropertyAliases(tNodeFlags, direction) { var count = tNodeFlags & 4095 /* DirectiveCountMask */; var propStore = null; if (count > 0) { var start = tNodeFlags >> 14 /* DirectiveStartingIndexShift */; var end = start + count; var isInput = direction === 0 /* Input */;...
[ "function", "generatePropertyAliases", "(", "tNodeFlags", ",", "direction", ")", "{", "var", "count", "=", "tNodeFlags", "&", "4095", "/* DirectiveCountMask */", ";", "var", "propStore", "=", "null", ";", "if", "(", "count", ">", "0", ")", "{", "var", "start...
Consolidates all inputs or outputs of all directives on this logical node. @param number lNodeFlags logical node flags @param Direction direction whether to consider inputs or outputs @returns PropertyAliases|null aggregate of all properties if any, `null` otherwise
[ "Consolidates", "all", "inputs", "or", "outputs", "of", "all", "directives", "on", "this", "logical", "node", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22554-L22577
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
elementClassProp
function elementClassProp(index, stylingIndex, value) { updateClassProp(getStylingContext(index), stylingIndex, value ? true : false); }
javascript
function elementClassProp(index, stylingIndex, value) { updateClassProp(getStylingContext(index), stylingIndex, value ? true : false); }
[ "function", "elementClassProp", "(", "index", ",", "stylingIndex", ",", "value", ")", "{", "updateClassProp", "(", "getStylingContext", "(", "index", ")", ",", "stylingIndex", ",", "value", "?", "true", ":", "false", ")", ";", "}" ]
Add or remove a class in a `classList` on a DOM element. This instruction is meant to handle the [class.foo]="exp" case @param index The index of the element to update in the data array @param className Name of class to toggle. Because it is going to DOM, this is not subject to renaming as part of minification. @para...
[ "Add", "or", "remove", "a", "class", "in", "a", "classList", "on", "a", "DOM", "element", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22588-L22590
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
elementStyling
function elementStyling(classDeclarations, styleDeclarations, styleSanitizer) { var lElement = currentElementNode; var tNode = lElement.tNode; if (!tNode.stylingTemplate) { // initialize the styling template. tNode.stylingTemplate = createStylingContextTemplate(classDeclarations,...
javascript
function elementStyling(classDeclarations, styleDeclarations, styleSanitizer) { var lElement = currentElementNode; var tNode = lElement.tNode; if (!tNode.stylingTemplate) { // initialize the styling template. tNode.stylingTemplate = createStylingContextTemplate(classDeclarations,...
[ "function", "elementStyling", "(", "classDeclarations", ",", "styleDeclarations", ",", "styleSanitizer", ")", "{", "var", "lElement", "=", "currentElementNode", ";", "var", "tNode", "=", "lElement", ".", "tNode", ";", "if", "(", "!", "tNode", ".", "stylingTempla...
Assign any inline style values to the element during creation mode. This instruction is meant to be called during creation mode to apply all styling (e.g. `style="..."`) values to the element. This is also where the provided index value is allocated for the styling details for its corresponding element (the element in...
[ "Assign", "any", "inline", "style", "values", "to", "the", "element", "during", "creation", "mode", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22619-L22631
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getStylingContext
function getStylingContext(index) { var stylingContext = load(index); if (!Array.isArray(stylingContext)) { var lElement = stylingContext; var tNode = lElement.tNode; ngDevMode && assertDefined(tNode.stylingTemplate, 'getStylingContext() called before elementStyling()'); ...
javascript
function getStylingContext(index) { var stylingContext = load(index); if (!Array.isArray(stylingContext)) { var lElement = stylingContext; var tNode = lElement.tNode; ngDevMode && assertDefined(tNode.stylingTemplate, 'getStylingContext() called before elementStyling()'); ...
[ "function", "getStylingContext", "(", "index", ")", "{", "var", "stylingContext", "=", "load", "(", "index", ")", ";", "if", "(", "!", "Array", ".", "isArray", "(", "stylingContext", ")", ")", "{", "var", "lElement", "=", "stylingContext", ";", "var", "t...
Retrieve the `StylingContext` at a given index. This method lazily creates the `StylingContext`. This is because in most cases we have styling without any bindings. Creating `StylingContext` eagerly would mean that every style declaration such as `<div style="color: red">` would result `StyleContext` which would creat...
[ "Retrieve", "the", "StylingContext", "at", "a", "given", "index", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22642-L22653
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
elementStyleProp
function elementStyleProp(index, styleIndex, value, suffix) { var valueToAdd = null; if (value) { if (suffix) { // when a suffix is applied then it will bypass // sanitization entirely (b/c a new string is created) valueToAdd = stringify$1(value) + suffix; } ...
javascript
function elementStyleProp(index, styleIndex, value, suffix) { var valueToAdd = null; if (value) { if (suffix) { // when a suffix is applied then it will bypass // sanitization entirely (b/c a new string is created) valueToAdd = stringify$1(value) + suffix; } ...
[ "function", "elementStyleProp", "(", "index", ",", "styleIndex", ",", "value", ",", "suffix", ")", "{", "var", "valueToAdd", "=", "null", ";", "if", "(", "value", ")", "{", "if", "(", "suffix", ")", "{", "// when a suffix is applied then it will bypass", "// s...
Queue a given style to be rendered on an Element. If the style value is `null` then it will be removed from the element (or assigned a different value depending if there are any styles placed on the element with `elementStyle` or any styles that are present from when the element was created (with `elementStyling`). (...
[ "Queue", "a", "given", "style", "to", "be", "rendered", "on", "an", "Element", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22693-L22710
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
setInputsFromAttrs
function setInputsFromAttrs(directiveIndex, instance, inputs, tNode) { var initialInputData = tNode.initialInputs; if (initialInputData === undefined || directiveIndex >= initialInputData.length) { initialInputData = generateInitialInputs(directiveIndex, inputs, tNode); } var initialInputs = ini...
javascript
function setInputsFromAttrs(directiveIndex, instance, inputs, tNode) { var initialInputData = tNode.initialInputs; if (initialInputData === undefined || directiveIndex >= initialInputData.length) { initialInputData = generateInitialInputs(directiveIndex, inputs, tNode); } var initialInputs = ini...
[ "function", "setInputsFromAttrs", "(", "directiveIndex", ",", "instance", ",", "inputs", ",", "tNode", ")", "{", "var", "initialInputData", "=", "tNode", ".", "initialInputs", ";", "if", "(", "initialInputData", "===", "undefined", "||", "directiveIndex", ">=", ...
Sets initial input properties on directive instances from attribute data @param directiveIndex Index of the directive in directives array @param instance Instance of the directive on which to set the initial inputs @param inputs The list of inputs from the directive def @param tNode The static data for this node
[ "Sets", "initial", "input", "properties", "on", "directive", "instances", "from", "attribute", "data" ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22868-L22879
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
generateInitialInputs
function generateInitialInputs(directiveIndex, inputs, tNode) { var initialInputData = tNode.initialInputs || (tNode.initialInputs = []); initialInputData[directiveIndex] = null; var attrs = tNode.attrs; var i = 0; while (i < attrs.length) { var attrName = attrs[i]; if (attrName === ...
javascript
function generateInitialInputs(directiveIndex, inputs, tNode) { var initialInputData = tNode.initialInputs || (tNode.initialInputs = []); initialInputData[directiveIndex] = null; var attrs = tNode.attrs; var i = 0; while (i < attrs.length) { var attrName = attrs[i]; if (attrName === ...
[ "function", "generateInitialInputs", "(", "directiveIndex", ",", "inputs", ",", "tNode", ")", "{", "var", "initialInputData", "=", "tNode", ".", "initialInputs", "||", "(", "tNode", ".", "initialInputs", "=", "[", "]", ")", ";", "initialInputData", "[", "direc...
Generates initialInputData for a node and stores it in the template's static storage so subsequent template invocations don't have to recalculate it. initialInputData is an array containing values that need to be set as input properties for directives on this node, but only once on creation. We need this array to supp...
[ "Generates", "initialInputData", "for", "a", "node", "and", "stores", "it", "in", "the", "template", "s", "static", "storage", "so", "subsequent", "template", "invocations", "don", "t", "have", "to", "recalculate", "it", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22895-L22918
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
container
function container(index, template, tagName, attrs, localRefs) { ngDevMode && assertEqual(viewData[BINDING_INDEX], -1, 'container nodes should be created before any bindings'); var currentParent = isParent ? previousOrParentNode : getParentLNode(previousOrParentNode); var lContainer = createLContain...
javascript
function container(index, template, tagName, attrs, localRefs) { ngDevMode && assertEqual(viewData[BINDING_INDEX], -1, 'container nodes should be created before any bindings'); var currentParent = isParent ? previousOrParentNode : getParentLNode(previousOrParentNode); var lContainer = createLContain...
[ "function", "container", "(", "index", ",", "template", ",", "tagName", ",", "attrs", ",", "localRefs", ")", "{", "ngDevMode", "&&", "assertEqual", "(", "viewData", "[", "BINDING_INDEX", "]", ",", "-", "1", ",", "'container nodes should be created before any bindi...
Creates an LContainerNode. Only `LViewNodes` can go into `LContainerNodes`. @param index The index of the container in the data array @param template Optional inline template @param tagName The name of the container element, if applicable @param attrs The attrs attached to the container, if applicable @param localRef...
[ "Creates", "an", "LContainerNode", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22958-L22984
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
containerRefreshStart
function containerRefreshStart(index) { previousOrParentNode = loadElement(index); ngDevMode && assertNodeType(previousOrParentNode, 0 /* Container */); isParent = true; previousOrParentNode.data[ACTIVE_INDEX] = 0; if (!checkNoChangesMode) { // We need to execute init hooks here so ngOnInit ...
javascript
function containerRefreshStart(index) { previousOrParentNode = loadElement(index); ngDevMode && assertNodeType(previousOrParentNode, 0 /* Container */); isParent = true; previousOrParentNode.data[ACTIVE_INDEX] = 0; if (!checkNoChangesMode) { // We need to execute init hooks here so ngOnInit ...
[ "function", "containerRefreshStart", "(", "index", ")", "{", "previousOrParentNode", "=", "loadElement", "(", "index", ")", ";", "ngDevMode", "&&", "assertNodeType", "(", "previousOrParentNode", ",", "0", "/* Container */", ")", ";", "isParent", "=", "true", ";", ...
Sets a container up to receive views. @param index The index of the container in the data array
[ "Sets", "a", "container", "up", "to", "receive", "views", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L22990-L23000
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
containerRefreshEnd
function containerRefreshEnd() { if (isParent) { isParent = false; } else { ngDevMode && assertNodeType(previousOrParentNode, 2 /* View */); ngDevMode && assertHasParent(); previousOrParentNode = getParentLNode(previousOrParentNode); } ngDevMode && assertNodeType(prev...
javascript
function containerRefreshEnd() { if (isParent) { isParent = false; } else { ngDevMode && assertNodeType(previousOrParentNode, 2 /* View */); ngDevMode && assertHasParent(); previousOrParentNode = getParentLNode(previousOrParentNode); } ngDevMode && assertNodeType(prev...
[ "function", "containerRefreshEnd", "(", ")", "{", "if", "(", "isParent", ")", "{", "isParent", "=", "false", ";", "}", "else", "{", "ngDevMode", "&&", "assertNodeType", "(", "previousOrParentNode", ",", "2", "/* View */", ")", ";", "ngDevMode", "&&", "assert...
Marks the end of the LContainerNode. Marking the end of LContainerNode is the time when to child Views get inserted or removed.
[ "Marks", "the", "end", "of", "the", "LContainerNode", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23006-L23023
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
scanForView
function scanForView(containerNode, startIdx, viewBlockId) { var views = containerNode.data[VIEWS]; for (var i = startIdx; i < views.length; i++) { var viewAtPositionId = views[i].data[TVIEW].id; if (viewAtPositionId === viewBlockId) { return views[i]; } else if (view...
javascript
function scanForView(containerNode, startIdx, viewBlockId) { var views = containerNode.data[VIEWS]; for (var i = startIdx; i < views.length; i++) { var viewAtPositionId = views[i].data[TVIEW].id; if (viewAtPositionId === viewBlockId) { return views[i]; } else if (view...
[ "function", "scanForView", "(", "containerNode", ",", "startIdx", ",", "viewBlockId", ")", "{", "var", "views", "=", "containerNode", ".", "data", "[", "VIEWS", "]", ";", "for", "(", "var", "i", "=", "startIdx", ";", "i", "<", "views", ".", "length", "...
Looks for a view with a given view block id inside a provided LContainer. Removes views that need to be deleted in the process. @param containerNode where to search for views @param startIdx starting index in the views array to search from @param viewBlockId exact view block id to look for @returns index of a found vi...
[ "Looks", "for", "a", "view", "with", "a", "given", "view", "block", "id", "inside", "a", "provided", "LContainer", ".", "Removes", "views", "that", "need", "to", "be", "deleted", "in", "the", "process", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23054-L23073
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
embeddedViewStart
function embeddedViewStart(viewBlockId) { var container = (isParent ? previousOrParentNode : getParentLNode(previousOrParentNode)); ngDevMode && assertNodeType(container, 0 /* Container */); var lContainer = container.data; var viewNode = scanForView(container, lContainer[ACTIVE_INDEX], viewBlockId); ...
javascript
function embeddedViewStart(viewBlockId) { var container = (isParent ? previousOrParentNode : getParentLNode(previousOrParentNode)); ngDevMode && assertNodeType(container, 0 /* Container */); var lContainer = container.data; var viewNode = scanForView(container, lContainer[ACTIVE_INDEX], viewBlockId); ...
[ "function", "embeddedViewStart", "(", "viewBlockId", ")", "{", "var", "container", "=", "(", "isParent", "?", "previousOrParentNode", ":", "getParentLNode", "(", "previousOrParentNode", ")", ")", ";", "ngDevMode", "&&", "assertNodeType", "(", "container", ",", "0"...
Marks the start of an embedded view. @param viewBlockId The ID of this view @return boolean Whether or not this view is in creation mode
[ "Marks", "the", "start", "of", "an", "embedded", "view", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23080-L23107
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
embeddedViewEnd
function embeddedViewEnd() { refreshView(); isParent = false; previousOrParentNode = viewData[HOST_NODE]; leaveView(viewData[PARENT]); ngDevMode && assertEqual(isParent, false, 'isParent'); ngDevMode && assertNodeType(previousOrParentNode, 2 /* View */); }
javascript
function embeddedViewEnd() { refreshView(); isParent = false; previousOrParentNode = viewData[HOST_NODE]; leaveView(viewData[PARENT]); ngDevMode && assertEqual(isParent, false, 'isParent'); ngDevMode && assertNodeType(previousOrParentNode, 2 /* View */); }
[ "function", "embeddedViewEnd", "(", ")", "{", "refreshView", "(", ")", ";", "isParent", "=", "false", ";", "previousOrParentNode", "=", "viewData", "[", "HOST_NODE", "]", ";", "leaveView", "(", "viewData", "[", "PARENT", "]", ")", ";", "ngDevMode", "&&", "...
Marks the end of an embedded view.
[ "Marks", "the", "end", "of", "an", "embedded", "view", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23131-L23138
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
projection
function projection(nodeIndex, selectorIndex, attrs) { if (selectorIndex === void 0) { selectorIndex = 0; } var node = createLNode(nodeIndex, 1 /* Projection */, null, null, attrs || null, null); // We can't use viewData[HOST_NODE] because projection nodes can be nested in embedded views. if (node.tNode...
javascript
function projection(nodeIndex, selectorIndex, attrs) { if (selectorIndex === void 0) { selectorIndex = 0; } var node = createLNode(nodeIndex, 1 /* Projection */, null, null, attrs || null, null); // We can't use viewData[HOST_NODE] because projection nodes can be nested in embedded views. if (node.tNode...
[ "function", "projection", "(", "nodeIndex", ",", "selectorIndex", ",", "attrs", ")", "{", "if", "(", "selectorIndex", "===", "void", "0", ")", "{", "selectorIndex", "=", "0", ";", "}", "var", "node", "=", "createLNode", "(", "nodeIndex", ",", "1", "/* Pr...
Inserts previously re-distributed projected nodes. This instruction must be preceded by a call to the projectionDef instruction. @param nodeIndex @param selectorIndex: - 0 when the selector is `*` (or unspecified as this is the default value), - 1 based index of the selector from the {@link projectionDef}
[ "Inserts", "previously", "re", "-", "distributed", "projected", "nodes", ".", "This", "instruction", "must", "be", "preceded", "by", "a", "call", "to", "the", "projectionDef", "instruction", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23224-L23272
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
addToViewTree
function addToViewTree(currentView, adjustedHostIndex, state) { if (currentView[TAIL]) { currentView[TAIL][NEXT] = state; } else if (firstTemplatePass) { tView.childIndex = adjustedHostIndex; } currentView[TAIL] = state; return state; }
javascript
function addToViewTree(currentView, adjustedHostIndex, state) { if (currentView[TAIL]) { currentView[TAIL][NEXT] = state; } else if (firstTemplatePass) { tView.childIndex = adjustedHostIndex; } currentView[TAIL] = state; return state; }
[ "function", "addToViewTree", "(", "currentView", ",", "adjustedHostIndex", ",", "state", ")", "{", "if", "(", "currentView", "[", "TAIL", "]", ")", "{", "currentView", "[", "TAIL", "]", "[", "NEXT", "]", "=", "state", ";", "}", "else", "if", "(", "firs...
Adds LViewData or LContainer to the end of the current view tree. This structure will be used to traverse through nested views to remove listeners and call onDestroy callbacks. @param currentView The view where LViewData or LContainer should be added @param adjustedHostIndex Index of the view's host node in LViewData...
[ "Adds", "LViewData", "or", "LContainer", "to", "the", "end", "of", "the", "current", "view", "tree", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23284-L23293
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
wrapListenerWithDirtyAndDefault
function wrapListenerWithDirtyAndDefault(view, listenerFn) { return function wrapListenerIn_markViewDirty(e) { markViewDirty(view); if (listenerFn(e) === false) { e.preventDefault(); // Necessary for legacy browsers that don't support preventDefault (e.g. IE) e.re...
javascript
function wrapListenerWithDirtyAndDefault(view, listenerFn) { return function wrapListenerIn_markViewDirty(e) { markViewDirty(view); if (listenerFn(e) === false) { e.preventDefault(); // Necessary for legacy browsers that don't support preventDefault (e.g. IE) e.re...
[ "function", "wrapListenerWithDirtyAndDefault", "(", "view", ",", "listenerFn", ")", "{", "return", "function", "wrapListenerIn_markViewDirty", "(", "e", ")", "{", "markViewDirty", "(", "view", ")", ";", "if", "(", "listenerFn", "(", "e", ")", "===", "false", "...
Wraps an event listener so its host view and its ancestor views will be marked dirty whenever the event fires. Also wraps with preventDefault behavior.
[ "Wraps", "an", "event", "listener", "so", "its", "host", "view", "and", "its", "ancestor", "views", "will", "be", "marked", "dirty", "whenever", "the", "event", "fires", ".", "Also", "wraps", "with", "preventDefault", "behavior", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23318-L23327
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
markViewDirty
function markViewDirty(view) { var currentView = view; while (currentView[PARENT] != null) { currentView[FLAGS] |= 4 /* Dirty */; currentView = currentView[PARENT]; } currentView[FLAGS] |= 4 /* Dirty */; ngDevMode && assertDefined(currentView[CONTEXT], 'rootContext'); scheduleTic...
javascript
function markViewDirty(view) { var currentView = view; while (currentView[PARENT] != null) { currentView[FLAGS] |= 4 /* Dirty */; currentView = currentView[PARENT]; } currentView[FLAGS] |= 4 /* Dirty */; ngDevMode && assertDefined(currentView[CONTEXT], 'rootContext'); scheduleTic...
[ "function", "markViewDirty", "(", "view", ")", "{", "var", "currentView", "=", "view", ";", "while", "(", "currentView", "[", "PARENT", "]", "!=", "null", ")", "{", "currentView", "[", "FLAGS", "]", "|=", "4", "/* Dirty */", ";", "currentView", "=", "cur...
Marks current view and all ancestors dirty
[ "Marks", "current", "view", "and", "all", "ancestors", "dirty" ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23329-L23338
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
scheduleTick
function scheduleTick(rootContext) { if (rootContext.clean == _CLEAN_PROMISE) { var res_1; rootContext.clean = new Promise(function (r) { return res_1 = r; }); rootContext.scheduler(function () { tickRootContext(rootContext); res_1(null); rootContext.clean...
javascript
function scheduleTick(rootContext) { if (rootContext.clean == _CLEAN_PROMISE) { var res_1; rootContext.clean = new Promise(function (r) { return res_1 = r; }); rootContext.scheduler(function () { tickRootContext(rootContext); res_1(null); rootContext.clean...
[ "function", "scheduleTick", "(", "rootContext", ")", "{", "if", "(", "rootContext", ".", "clean", "==", "_CLEAN_PROMISE", ")", "{", "var", "res_1", ";", "rootContext", ".", "clean", "=", "new", "Promise", "(", "function", "(", "r", ")", "{", "return", "r...
Used to schedule change detection on the whole application. Unlike `tick`, `scheduleTick` coalesces multiple calls into one change detection run. It is usually called indirectly by calling `markDirty` when the view needs to be re-rendered. Typically `scheduleTick` uses `requestAnimationFrame` to coalesce multiple `sc...
[ "Used", "to", "schedule", "change", "detection", "on", "the", "whole", "application", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23350-L23360
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getRootView
function getRootView(component) { ngDevMode && assertDefined(component, 'component'); var lElementNode = _getComponentHostLElementNode(component); var lViewData = lElementNode.view; while (lViewData[PARENT]) { lViewData = lViewData[PARENT]; } return lViewData; }
javascript
function getRootView(component) { ngDevMode && assertDefined(component, 'component'); var lElementNode = _getComponentHostLElementNode(component); var lViewData = lElementNode.view; while (lViewData[PARENT]) { lViewData = lViewData[PARENT]; } return lViewData; }
[ "function", "getRootView", "(", "component", ")", "{", "ngDevMode", "&&", "assertDefined", "(", "component", ",", "'component'", ")", ";", "var", "lElementNode", "=", "_getComponentHostLElementNode", "(", "component", ")", ";", "var", "lViewData", "=", "lElementNo...
Retrieve the root view from any component by walking the parent `LViewData` until reaching the root `LViewData`. @param component any component
[ "Retrieve", "the", "root", "view", "from", "any", "component", "by", "walking", "the", "parent", "LViewData", "until", "reaching", "the", "root", "LViewData", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23375-L23383
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
detectChangesInternal
function detectChangesInternal(hostView, hostNode, component) { var oldView = enterView(hostView, hostNode); var hostTView = hostView[TVIEW]; var template = hostTView.template; var viewQuery = hostTView.viewQuery; try { namespaceHTML(); createViewQuery(viewQuery, hostView[FLAGS], com...
javascript
function detectChangesInternal(hostView, hostNode, component) { var oldView = enterView(hostView, hostNode); var hostTView = hostView[TVIEW]; var template = hostTView.template; var viewQuery = hostTView.viewQuery; try { namespaceHTML(); createViewQuery(viewQuery, hostView[FLAGS], com...
[ "function", "detectChangesInternal", "(", "hostView", ",", "hostNode", ",", "component", ")", "{", "var", "oldView", "=", "enterView", "(", "hostView", ",", "hostNode", ")", ";", "var", "hostTView", "=", "hostView", "[", "TVIEW", "]", ";", "var", "template",...
Checks the view of the component provided. Does not gate on dirty checks or execute doCheck.
[ "Checks", "the", "view", "of", "the", "component", "provided", ".", "Does", "not", "gate", "on", "dirty", "checks", "or", "execute", "doCheck", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23419-L23434
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
initBindings
function initBindings() { ngDevMode && assertEqual(viewData[BINDING_INDEX], -1, 'Binding index should not yet be set ' + viewData[BINDING_INDEX]); if (tView.bindingStartIndex === -1) { tView.bindingStartIndex = viewData.length; } viewData[BINDING_INDEX] = tView.bindingStartIndex; }
javascript
function initBindings() { ngDevMode && assertEqual(viewData[BINDING_INDEX], -1, 'Binding index should not yet be set ' + viewData[BINDING_INDEX]); if (tView.bindingStartIndex === -1) { tView.bindingStartIndex = viewData.length; } viewData[BINDING_INDEX] = tView.bindingStartIndex; }
[ "function", "initBindings", "(", ")", "{", "ngDevMode", "&&", "assertEqual", "(", "viewData", "[", "BINDING_INDEX", "]", ",", "-", "1", ",", "'Binding index should not yet be set '", "+", "viewData", "[", "BINDING_INDEX", "]", ")", ";", "if", "(", "tView", "."...
Initializes the binding start index. Will get inlined. This function must be called before any binding related function is called (ie `bind()`, `interpolationX()`, `pureFunctionX()`)
[ "Initializes", "the", "binding", "start", "index", ".", "Will", "get", "inlined", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23472-L23478
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
moveBindingIndexToReservedSlot
function moveBindingIndexToReservedSlot(offset) { var currentSlot = viewData[BINDING_INDEX]; viewData[BINDING_INDEX] = tView.bindingStartIndex - offset; return currentSlot; }
javascript
function moveBindingIndexToReservedSlot(offset) { var currentSlot = viewData[BINDING_INDEX]; viewData[BINDING_INDEX] = tView.bindingStartIndex - offset; return currentSlot; }
[ "function", "moveBindingIndexToReservedSlot", "(", "offset", ")", "{", "var", "currentSlot", "=", "viewData", "[", "BINDING_INDEX", "]", ";", "viewData", "[", "BINDING_INDEX", "]", "=", "tView", ".", "bindingStartIndex", "-", "offset", ";", "return", "currentSlot"...
Sets up the binding index before executing any `pureFunctionX` instructions. The index must be restored after the pure function is executed {@link reserveSlots}
[ "Sets", "up", "the", "binding", "index", "before", "executing", "any", "pureFunctionX", "instructions", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23521-L23525
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
interpolationV
function interpolationV(values) { ngDevMode && assertLessThan(2, values.length, 'should have at least 3 values'); ngDevMode && assertEqual(values.length % 2, 1, 'should have an odd number of values'); var different = false; for (var i = 1; i < values.length; i += 2) { // Check if bindings (odd i...
javascript
function interpolationV(values) { ngDevMode && assertLessThan(2, values.length, 'should have at least 3 values'); ngDevMode && assertEqual(values.length % 2, 1, 'should have an odd number of values'); var different = false; for (var i = 1; i < values.length; i += 2) { // Check if bindings (odd i...
[ "function", "interpolationV", "(", "values", ")", "{", "ngDevMode", "&&", "assertLessThan", "(", "2", ",", "values", ".", "length", ",", "'should have at least 3 values'", ")", ";", "ngDevMode", "&&", "assertEqual", "(", "values", ".", "length", "%", "2", ",",...
Create interpolation bindings with a variable number of expressions. If there are 1 to 8 expressions `interpolation1()` to `interpolation8()` should be used instead. Those are faster because there is no need to create an array of expressions and iterate over it. `values`: - has static text at even indexes, - has eval...
[ "Create", "interpolation", "bindings", "with", "a", "variable", "number", "of", "expressions", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23547-L23564
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
interpolation1
function interpolation1(prefix, v0, suffix) { var different = bindingUpdated(v0); return different ? prefix + stringify$1(v0) + suffix : NO_CHANGE; }
javascript
function interpolation1(prefix, v0, suffix) { var different = bindingUpdated(v0); return different ? prefix + stringify$1(v0) + suffix : NO_CHANGE; }
[ "function", "interpolation1", "(", "prefix", ",", "v0", ",", "suffix", ")", "{", "var", "different", "=", "bindingUpdated", "(", "v0", ")", ";", "return", "different", "?", "prefix", "+", "stringify$1", "(", "v0", ")", "+", "suffix", ":", "NO_CHANGE", ";...
Creates an interpolation binding with 1 expression. @param prefix static value used for concatenation only. @param v0 value checked for change. @param suffix static value used for concatenation only.
[ "Creates", "an", "interpolation", "binding", "with", "1", "expression", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23572-L23575
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
interpolation2
function interpolation2(prefix, v0, i0, v1, suffix) { var different = bindingUpdated2(v0, v1); return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + suffix : NO_CHANGE; }
javascript
function interpolation2(prefix, v0, i0, v1, suffix) { var different = bindingUpdated2(v0, v1); return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + suffix : NO_CHANGE; }
[ "function", "interpolation2", "(", "prefix", ",", "v0", ",", "i0", ",", "v1", ",", "suffix", ")", "{", "var", "different", "=", "bindingUpdated2", "(", "v0", ",", "v1", ")", ";", "return", "different", "?", "prefix", "+", "stringify$1", "(", "v0", ")",...
Creates an interpolation binding with 2 expressions.
[ "Creates", "an", "interpolation", "binding", "with", "2", "expressions", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23577-L23580
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
interpolation3
function interpolation3(prefix, v0, i0, v1, i1, v2, suffix) { var different = bindingUpdated2(v0, v1); different = bindingUpdated(v2) || different; return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + i1 + stringify$1(v2) + suffix : NO_CHANGE; }
javascript
function interpolation3(prefix, v0, i0, v1, i1, v2, suffix) { var different = bindingUpdated2(v0, v1); different = bindingUpdated(v2) || different; return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + i1 + stringify$1(v2) + suffix : NO_CHANGE; }
[ "function", "interpolation3", "(", "prefix", ",", "v0", ",", "i0", ",", "v1", ",", "i1", ",", "v2", ",", "suffix", ")", "{", "var", "different", "=", "bindingUpdated2", "(", "v0", ",", "v1", ")", ";", "different", "=", "bindingUpdated", "(", "v2", ")...
Creates an interpolation binding with 3 expressions.
[ "Creates", "an", "interpolation", "binding", "with", "3", "expressions", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23582-L23587
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
interpolation4
function interpolation4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) { var different = bindingUpdated4(v0, v1, v2, v3); return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + i1 + stringify$1(v2) + i2 + stringify$1(v3) + suffix : NO_CHANGE; }
javascript
function interpolation4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) { var different = bindingUpdated4(v0, v1, v2, v3); return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + i1 + stringify$1(v2) + i2 + stringify$1(v3) + suffix : NO_CHANGE; }
[ "function", "interpolation4", "(", "prefix", ",", "v0", ",", "i0", ",", "v1", ",", "i1", ",", "v2", ",", "i2", ",", "v3", ",", "suffix", ")", "{", "var", "different", "=", "bindingUpdated4", "(", "v0", ",", "v1", ",", "v2", ",", "v3", ")", ";", ...
Create an interpolation binding with 4 expressions.
[ "Create", "an", "interpolation", "binding", "with", "4", "expressions", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23589-L23595
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
interpolation5
function interpolation5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated(v4) || different; return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + i1 + stringify$1(v2) + i2 + stringify$1(v3) + i3 + ...
javascript
function interpolation5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated(v4) || different; return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + i1 + stringify$1(v2) + i2 + stringify$1(v3) + i3 + ...
[ "function", "interpolation5", "(", "prefix", ",", "v0", ",", "i0", ",", "v1", ",", "i1", ",", "v2", ",", "i2", ",", "v3", ",", "i3", ",", "v4", ",", "suffix", ")", "{", "var", "different", "=", "bindingUpdated4", "(", "v0", ",", "v1", ",", "v2", ...
Creates an interpolation binding with 5 expressions.
[ "Creates", "an", "interpolation", "binding", "with", "5", "expressions", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23597-L23604
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
interpolation6
function interpolation6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated2(v4, v5) || different; return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + i1 + stringify$1(v2) + i2 + stringify$1(v3) + ...
javascript
function interpolation6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated2(v4, v5) || different; return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + i1 + stringify$1(v2) + i2 + stringify$1(v3) + ...
[ "function", "interpolation6", "(", "prefix", ",", "v0", ",", "i0", ",", "v1", ",", "i1", ",", "v2", ",", "i2", ",", "v3", ",", "i3", ",", "v4", ",", "i4", ",", "v5", ",", "suffix", ")", "{", "var", "different", "=", "bindingUpdated4", "(", "v0", ...
Creates an interpolation binding with 6 expressions.
[ "Creates", "an", "interpolation", "binding", "with", "6", "expressions", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23606-L23613
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
interpolation7
function interpolation7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated2(v4, v5) || different; different = bindingUpdated(v6) || different; return different ? prefix + stringify$1(v0) + i0 + stringi...
javascript
function interpolation7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated2(v4, v5) || different; different = bindingUpdated(v6) || different; return different ? prefix + stringify$1(v0) + i0 + stringi...
[ "function", "interpolation7", "(", "prefix", ",", "v0", ",", "i0", ",", "v1", ",", "i1", ",", "v2", ",", "i2", ",", "v3", ",", "i3", ",", "v4", ",", "i4", ",", "v5", ",", "i5", ",", "v6", ",", "suffix", ")", "{", "var", "different", "=", "bin...
Creates an interpolation binding with 7 expressions.
[ "Creates", "an", "interpolation", "binding", "with", "7", "expressions", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23615-L23623
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
interpolation8
function interpolation8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated4(v4, v5, v6, v7) || different; return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + i1 + stringify$1(v2) +...
javascript
function interpolation8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated4(v4, v5, v6, v7) || different; return different ? prefix + stringify$1(v0) + i0 + stringify$1(v1) + i1 + stringify$1(v2) +...
[ "function", "interpolation8", "(", "prefix", ",", "v0", ",", "i0", ",", "v1", ",", "i1", ",", "v2", ",", "i2", ",", "v3", ",", "i3", ",", "v4", ",", "i4", ",", "v5", ",", "i5", ",", "v6", ",", "i6", ",", "v7", ",", "suffix", ")", "{", "var"...
Creates an interpolation binding with 8 expressions.
[ "Creates", "an", "interpolation", "binding", "with", "8", "expressions", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23625-L23632
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
store
function store(index, value) { // We don't store any static data for local variables, so the first time // we see the template, we should store as null to avoid a sparse array var adjustedIndex = index + HEADER_OFFSET; if (adjustedIndex >= tView.data.length) { tView.data[adjustedIndex] = null; ...
javascript
function store(index, value) { // We don't store any static data for local variables, so the first time // we see the template, we should store as null to avoid a sparse array var adjustedIndex = index + HEADER_OFFSET; if (adjustedIndex >= tView.data.length) { tView.data[adjustedIndex] = null; ...
[ "function", "store", "(", "index", ",", "value", ")", "{", "// We don't store any static data for local variables, so the first time", "// we see the template, we should store as null to avoid a sparse array", "var", "adjustedIndex", "=", "index", "+", "HEADER_OFFSET", ";", "if", ...
Store a value in the `data` at a given `index`.
[ "Store", "a", "value", "in", "the", "data", "at", "a", "given", "index", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23634-L23642
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
loadDirective
function loadDirective(index) { ngDevMode && assertDefined(directives, 'Directives array should be defined if reading a dir.'); ngDevMode && assertDataInRange(index, directives); return directives[index]; }
javascript
function loadDirective(index) { ngDevMode && assertDefined(directives, 'Directives array should be defined if reading a dir.'); ngDevMode && assertDataInRange(index, directives); return directives[index]; }
[ "function", "loadDirective", "(", "index", ")", "{", "ngDevMode", "&&", "assertDefined", "(", "directives", ",", "'Directives array should be defined if reading a dir.'", ")", ";", "ngDevMode", "&&", "assertDataInRange", "(", "index", ",", "directives", ")", ";", "ret...
Retrieves a value from the `directives` array.
[ "Retrieves", "a", "value", "from", "the", "directives", "array", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23644-L23648
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
consumeBinding
function consumeBinding() { ngDevMode && assertDataInRange(viewData[BINDING_INDEX]); ngDevMode && assertNotEqual(viewData[viewData[BINDING_INDEX]], NO_CHANGE, 'Stored value should never be NO_CHANGE.'); return viewData[viewData[BINDING_INDEX]++]; }
javascript
function consumeBinding() { ngDevMode && assertDataInRange(viewData[BINDING_INDEX]); ngDevMode && assertNotEqual(viewData[viewData[BINDING_INDEX]], NO_CHANGE, 'Stored value should never be NO_CHANGE.'); return viewData[viewData[BINDING_INDEX]++]; }
[ "function", "consumeBinding", "(", ")", "{", "ngDevMode", "&&", "assertDataInRange", "(", "viewData", "[", "BINDING_INDEX", "]", ")", ";", "ngDevMode", "&&", "assertNotEqual", "(", "viewData", "[", "viewData", "[", "BINDING_INDEX", "]", "]", ",", "NO_CHANGE", ...
Gets the current binding value and increments the binding index.
[ "Gets", "the", "current", "binding", "value", "and", "increments", "the", "binding", "index", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23662-L23667
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
bindingUpdated
function bindingUpdated(value) { ngDevMode && assertNotEqual(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.'); if (viewData[BINDING_INDEX] === -1) initBindings(); var bindingIndex = viewData[BINDING_INDEX]; if (bindingIndex >= viewData.length) { viewData[viewData[BINDING_IN...
javascript
function bindingUpdated(value) { ngDevMode && assertNotEqual(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.'); if (viewData[BINDING_INDEX] === -1) initBindings(); var bindingIndex = viewData[BINDING_INDEX]; if (bindingIndex >= viewData.length) { viewData[viewData[BINDING_IN...
[ "function", "bindingUpdated", "(", "value", ")", "{", "ngDevMode", "&&", "assertNotEqual", "(", "value", ",", "NO_CHANGE", ",", "'Incoming value should never be NO_CHANGE.'", ")", ";", "if", "(", "viewData", "[", "BINDING_INDEX", "]", "===", "-", "1", ")", "init...
Updates binding if changed, then returns whether it was updated.
[ "Updates", "binding", "if", "changed", "then", "returns", "whether", "it", "was", "updated", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23669-L23686
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
bindingUpdated4
function bindingUpdated4(exp1, exp2, exp3, exp4) { var different = bindingUpdated2(exp1, exp2); return bindingUpdated2(exp3, exp4) || different; }
javascript
function bindingUpdated4(exp1, exp2, exp3, exp4) { var different = bindingUpdated2(exp1, exp2); return bindingUpdated2(exp3, exp4) || different; }
[ "function", "bindingUpdated4", "(", "exp1", ",", "exp2", ",", "exp3", ",", "exp4", ")", "{", "var", "different", "=", "bindingUpdated2", "(", "exp1", ",", "exp2", ")", ";", "return", "bindingUpdated2", "(", "exp3", ",", "exp4", ")", "||", "different", ";...
Updates 4 bindings if changed, then returns whether any was updated.
[ "Updates", "4", "bindings", "if", "changed", "then", "returns", "whether", "any", "was", "updated", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23698-L23701
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
assertReservedSlotInitialized
function assertReservedSlotInitialized(slotOffset, numSlots) { if (firstTemplatePass) { var startIndex = tView.bindingStartIndex - slotOffset; for (var i = 0; i < numSlots; i++) { assertEqual(viewData[startIndex + i], NO_CHANGE, 'The reserved slots should be set to `NO_CHANGE` on first t...
javascript
function assertReservedSlotInitialized(slotOffset, numSlots) { if (firstTemplatePass) { var startIndex = tView.bindingStartIndex - slotOffset; for (var i = 0; i < numSlots; i++) { assertEqual(viewData[startIndex + i], NO_CHANGE, 'The reserved slots should be set to `NO_CHANGE` on first t...
[ "function", "assertReservedSlotInitialized", "(", "slotOffset", ",", "numSlots", ")", "{", "if", "(", "firstTemplatePass", ")", "{", "var", "startIndex", "=", "tView", ".", "bindingStartIndex", "-", "slotOffset", ";", "for", "(", "var", "i", "=", "0", ";", "...
On the first template pass, the reserved slots should be set `NO_CHANGE`. If not, they might not have been actually reserved.
[ "On", "the", "first", "template", "pass", "the", "reserved", "slots", "should", "be", "set", "NO_CHANGE", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23741-L23748
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
LifecycleHooksFeature
function LifecycleHooksFeature(component, def) { var elementNode = _getComponentHostLElementNode(component); // Root component is always created at dir index 0 var tView = elementNode.view[TVIEW]; queueInitHooks(0, def.onInit, def.doCheck, tView); queueLifecycleHooks(elementNode.tNode.flags, tView);...
javascript
function LifecycleHooksFeature(component, def) { var elementNode = _getComponentHostLElementNode(component); // Root component is always created at dir index 0 var tView = elementNode.view[TVIEW]; queueInitHooks(0, def.onInit, def.doCheck, tView); queueLifecycleHooks(elementNode.tNode.flags, tView);...
[ "function", "LifecycleHooksFeature", "(", "component", ",", "def", ")", "{", "var", "elementNode", "=", "_getComponentHostLElementNode", "(", "component", ")", ";", "// Root component is always created at dir index 0", "var", "tView", "=", "elementNode", ".", "view", "[...
Used to enable lifecycle hooks on the root component. Include this feature when calling `renderComponent` if the root component you are rendering has lifecycle hooks defined. Otherwise, the hooks won't be called properly. Example: ``` renderComponent(AppComponent, {features: [RootLifecycleHooks]}); ```
[ "Used", "to", "enable", "lifecycle", "hooks", "on", "the", "root", "component", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23835-L23841
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getRootContext
function getRootContext(component) { var rootContext = getRootView(component)[CONTEXT]; ngDevMode && assertDefined(rootContext, 'rootContext'); return rootContext; }
javascript
function getRootContext(component) { var rootContext = getRootView(component)[CONTEXT]; ngDevMode && assertDefined(rootContext, 'rootContext'); return rootContext; }
[ "function", "getRootContext", "(", "component", ")", "{", "var", "rootContext", "=", "getRootView", "(", "component", ")", "[", "CONTEXT", "]", ";", "ngDevMode", "&&", "assertDefined", "(", "rootContext", ",", "'rootContext'", ")", ";", "return", "rootContext", ...
Retrieve the root context for any component by walking the parent `LView` until reaching the root `LView`. @param component any component
[ "Retrieve", "the", "root", "context", "for", "any", "component", "by", "walking", "the", "parent", "LView", "until", "reaching", "the", "root", "LView", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L23848-L23852
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
invertObject
function invertObject(obj, secondary) { if (obj == null) return EMPTY$1; var newLookup = {}; for (var minifiedKey in obj) { if (obj.hasOwnProperty(minifiedKey)) { var publicName = obj[minifiedKey]; var declaredName = publicName; if (Array.isArray(publicNam...
javascript
function invertObject(obj, secondary) { if (obj == null) return EMPTY$1; var newLookup = {}; for (var minifiedKey in obj) { if (obj.hasOwnProperty(minifiedKey)) { var publicName = obj[minifiedKey]; var declaredName = publicName; if (Array.isArray(publicNam...
[ "function", "invertObject", "(", "obj", ",", "secondary", ")", "{", "if", "(", "obj", "==", "null", ")", "return", "EMPTY$1", ";", "var", "newLookup", "=", "{", "}", ";", "for", "(", "var", "minifiedKey", "in", "obj", ")", "{", "if", "(", "obj", "....
Inverts an inputs or outputs lookup such that the keys, which were the minified keys, are part of the values, and the values are parsed so that the publicName of the property is the new key e.g. for ``` class Comp { @Input() propName1: string; @Input('publicName') propName2: number; } ``` will be serialized as ```...
[ "Inverts", "an", "inputs", "or", "outputs", "lookup", "such", "that", "the", "keys", "which", "were", "the", "minified", "keys", "are", "part", "of", "the", "values", "and", "the", "values", "are", "parsed", "so", "that", "the", "publicName", "of", "the", ...
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L24009-L24028
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
definePipe
function definePipe(pipeDef) { return { name: pipeDef.name, factory: pipeDef.factory, pure: pipeDef.pure !== false, onDestroy: pipeDef.type.prototype.ngOnDestroy || null }; }
javascript
function definePipe(pipeDef) { return { name: pipeDef.name, factory: pipeDef.factory, pure: pipeDef.pure !== false, onDestroy: pipeDef.type.prototype.ngOnDestroy || null }; }
[ "function", "definePipe", "(", "pipeDef", ")", "{", "return", "{", "name", ":", "pipeDef", ".", "name", ",", "factory", ":", "pipeDef", ".", "factory", ",", "pure", ":", "pipeDef", ".", "pure", "!==", "false", ",", "onDestroy", ":", "pipeDef", ".", "ty...
Create a pipe definition object. # Example ``` class MyPipe implements PipeTransform { // Generated by Angular Template Compiler static ngPipeDef = definePipe({ ... }); } ``` @param pipeDef Pipe definition generated by the compiler
[ "Create", "a", "pipe", "definition", "object", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L24058-L24065
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
NgOnChangesFeature
function NgOnChangesFeature(definition) { var declaredToMinifiedInputs = definition.declaredInputs; var proto = definition.type.prototype; var _loop_1 = function (declaredName) { if (declaredToMinifiedInputs.hasOwnProperty(declaredName)) { var minifiedKey = declaredToMinifiedInputs[decla...
javascript
function NgOnChangesFeature(definition) { var declaredToMinifiedInputs = definition.declaredInputs; var proto = definition.type.prototype; var _loop_1 = function (declaredName) { if (declaredToMinifiedInputs.hasOwnProperty(declaredName)) { var minifiedKey = declaredToMinifiedInputs[decla...
[ "function", "NgOnChangesFeature", "(", "definition", ")", "{", "var", "declaredToMinifiedInputs", "=", "definition", ".", "declaredInputs", ";", "var", "proto", "=", "definition", ".", "type", ".", "prototype", ";", "var", "_loop_1", "=", "function", "(", "decla...
The NgOnChangesFeature decorates a component with support for the ngOnChanges lifecycle hook, so it should be included in any component that implements that hook. If the component or directive uses inheritance, the NgOnChangesFeature MUST be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise inher...
[ "The", "NgOnChangesFeature", "decorates", "a", "component", "with", "support", "for", "the", "ngOnChanges", "lifecycle", "hook", "so", "it", "should", "be", "included", "in", "any", "component", "that", "implements", "that", "hook", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L24216-L24277
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
bloomAdd
function bloomAdd(injector, type) { var id = type[NG_ELEMENT_ID]; // Set a unique ID on the directive type, so if something tries to inject the directive, // we can easily retrieve the ID and hash it into the bloom bit that should be checked. if (id == null) { id = type[NG_ELEMENT_ID] = nextNgEl...
javascript
function bloomAdd(injector, type) { var id = type[NG_ELEMENT_ID]; // Set a unique ID on the directive type, so if something tries to inject the directive, // we can easily retrieve the ID and hash it into the bloom bit that should be checked. if (id == null) { id = type[NG_ELEMENT_ID] = nextNgEl...
[ "function", "bloomAdd", "(", "injector", ",", "type", ")", "{", "var", "id", "=", "type", "[", "NG_ELEMENT_ID", "]", ";", "// Set a unique ID on the directive type, so if something tries to inject the directive,", "// we can easily retrieve the ID and hash it into the bloom bit tha...
Registers this directive as present in its node's injector by flipping the directive's corresponding bit in the injector's bloom filter. @param injector The node injector in which the directive should be registered @param type The directive to register
[ "Registers", "this", "directive", "as", "present", "in", "its", "node", "s", "injector", "by", "flipping", "the", "directive", "s", "corresponding", "bit", "in", "the", "injector", "s", "bloom", "filter", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L24714-L24741
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
injectAttribute
function injectAttribute(attrNameToInject) { ngDevMode && assertPreviousIsParent(); var lElement = getPreviousOrParentNode(); ngDevMode && assertNodeType(lElement, 3 /* Element */); var tElement = lElement.tNode; ngDevMode && assertDefined(tElement, 'expecting tNode'); var attrs = tElement.attrs...
javascript
function injectAttribute(attrNameToInject) { ngDevMode && assertPreviousIsParent(); var lElement = getPreviousOrParentNode(); ngDevMode && assertNodeType(lElement, 3 /* Element */); var tElement = lElement.tNode; ngDevMode && assertDefined(tElement, 'expecting tNode'); var attrs = tElement.attrs...
[ "function", "injectAttribute", "(", "attrNameToInject", ")", "{", "ngDevMode", "&&", "assertPreviousIsParent", "(", ")", ";", "var", "lElement", "=", "getPreviousOrParentNode", "(", ")", ";", "ngDevMode", "&&", "assertNodeType", "(", "lElement", ",", "3", "/* Elem...
Inject static attribute value into directive constructor. This method is used with `factory` functions which are generated as part of `defineDirective` or `defineComponent`. The method retrieves the static value of an attribute. (Dynamic attributes are not supported since they are not resolved at the time of injection...
[ "Inject", "static", "attribute", "value", "into", "directive", "constructor", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L24868-L24886
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getOrCreateHostChangeDetector
function getOrCreateHostChangeDetector(currentNode) { var hostNode = getClosestComponentAncestor(currentNode); var hostInjector = hostNode.nodeInjector; var existingRef = hostInjector && hostInjector.changeDetectorRef; return existingRef ? existingRef : new ViewRef$1(hostNode.data, hostN...
javascript
function getOrCreateHostChangeDetector(currentNode) { var hostNode = getClosestComponentAncestor(currentNode); var hostInjector = hostNode.nodeInjector; var existingRef = hostInjector && hostInjector.changeDetectorRef; return existingRef ? existingRef : new ViewRef$1(hostNode.data, hostN...
[ "function", "getOrCreateHostChangeDetector", "(", "currentNode", ")", "{", "var", "hostNode", "=", "getClosestComponentAncestor", "(", "currentNode", ")", ";", "var", "hostInjector", "=", "hostNode", ".", "nodeInjector", ";", "var", "existingRef", "=", "hostInjector",...
Gets or creates ChangeDetectorRef for the closest host component
[ "Gets", "or", "creates", "ChangeDetectorRef", "for", "the", "closest", "host", "component" ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L24906-L24914
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getClosestComponentAncestor
function getClosestComponentAncestor(node) { while (node.tNode.type === 2 /* View */) { node = node.view[HOST_NODE]; } return node; }
javascript
function getClosestComponentAncestor(node) { while (node.tNode.type === 2 /* View */) { node = node.view[HOST_NODE]; } return node; }
[ "function", "getClosestComponentAncestor", "(", "node", ")", "{", "while", "(", "node", ".", "tNode", ".", "type", "===", "2", "/* View */", ")", "{", "node", "=", "node", ".", "view", "[", "HOST_NODE", "]", ";", "}", "return", "node", ";", "}" ]
If the node is an embedded view, traverses up the view tree to return the closest ancestor view that is attached to a component. If it's already a component node, returns itself.
[ "If", "the", "node", "is", "an", "embedded", "view", "traverses", "up", "the", "view", "tree", "to", "return", "the", "closest", "ancestor", "view", "that", "is", "attached", "to", "a", "component", ".", "If", "it", "s", "already", "a", "component", "nod...
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L24920-L24925
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getOrCreateInjectable
function getOrCreateInjectable(di, token, flags) { if (flags === void 0) { flags = 0 /* Default */; } var bloomHash = bloomHashBit(token); // If the token has a bloom hash, then it is a directive that is public to the injection system // (diPublic). If there is no hash, fall back to the module injector....
javascript
function getOrCreateInjectable(di, token, flags) { if (flags === void 0) { flags = 0 /* Default */; } var bloomHash = bloomHashBit(token); // If the token has a bloom hash, then it is a directive that is public to the injection system // (diPublic). If there is no hash, fall back to the module injector....
[ "function", "getOrCreateInjectable", "(", "di", ",", "token", ",", "flags", ")", "{", "if", "(", "flags", "===", "void", "0", ")", "{", "flags", "=", "0", "/* Default */", ";", "}", "var", "bloomHash", "=", "bloomHashBit", "(", "token", ")", ";", "// I...
Searches for an instance of the given directive type up the injector tree and returns that instance if found. Specifically, it gets the bloom filter bit associated with the directive (see bloomHashBit), checks that bit against the bloom filter structure to identify an injector that might have the directive (see bloomF...
[ "Searches", "for", "an", "instance", "of", "the", "given", "directive", "type", "up", "the", "injector", "tree", "and", "returns", "that", "instance", "if", "found", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L24943-L25007
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
bloomFindPossibleInjector
function bloomFindPossibleInjector(startInjector, bloomBit, flags) { // Create a mask that targets the specific bit associated with the directive we're looking for. // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding // to bit positions 0 - 31 in a 32 bit integer. ...
javascript
function bloomFindPossibleInjector(startInjector, bloomBit, flags) { // Create a mask that targets the specific bit associated with the directive we're looking for. // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding // to bit positions 0 - 31 in a 32 bit integer. ...
[ "function", "bloomFindPossibleInjector", "(", "startInjector", ",", "bloomBit", ",", "flags", ")", "{", "// Create a mask that targets the specific bit associated with the directive we're looking for.", "// JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, correspon...
Finds the closest injector that might have a certain directive. Each directive corresponds to a bit in an injector's bloom filter. Given the bloom bit to check and a starting injector, this function traverses up injectors until it finds an injector that contains a 1 for that bit in its bloom filter. A 1 indicates that...
[ "Finds", "the", "closest", "injector", "that", "might", "have", "a", "certain", "directive", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25056-L25100
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
sameHostView
function sameHostView(injector) { return !!injector.parent && injector.parent.node.view === injector.node.view; }
javascript
function sameHostView(injector) { return !!injector.parent && injector.parent.node.view === injector.node.view; }
[ "function", "sameHostView", "(", "injector", ")", "{", "return", "!", "!", "injector", ".", "parent", "&&", "injector", ".", "parent", ".", "node", ".", "view", "===", "injector", ".", "node", ".", "view", ";", "}" ]
Checks whether the current injector and its parent are in the same host view. This is necessary to support @Host() decorators. If @Host() is set, we should stop searching once the injector and its parent view don't match because it means we'd cross the view boundary.
[ "Checks", "whether", "the", "current", "injector", "and", "its", "parent", "are", "in", "the", "same", "host", "view", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25107-L25109
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getOrCreateElementRef
function getOrCreateElementRef(di) { return di.elementRef || (di.elementRef = new ElementRef$1(di.node.native)); }
javascript
function getOrCreateElementRef(di) { return di.elementRef || (di.elementRef = new ElementRef$1(di.node.native)); }
[ "function", "getOrCreateElementRef", "(", "di", ")", "{", "return", "di", ".", "elementRef", "||", "(", "di", ".", "elementRef", "=", "new", "ElementRef$1", "(", "di", ".", "node", ".", "native", ")", ")", ";", "}" ]
Creates an ElementRef for a given node injector and stores it on the injector. Or, if the ElementRef already exists, retrieves the existing ElementRef. @param di The node injector where we should store a created ElementRef @returns The ElementRef instance to use
[ "Creates", "an", "ElementRef", "for", "a", "given", "node", "injector", "and", "stores", "it", "on", "the", "injector", ".", "Or", "if", "the", "ElementRef", "already", "exists", "retrieves", "the", "existing", "ElementRef", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25123-L25125
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getOrCreateContainerRef
function getOrCreateContainerRef(di) { if (!di.viewContainerRef) { var vcRefHost = di.node; ngDevMode && assertNodeOfPossibleTypes(vcRefHost, 0 /* Container */, 3 /* Element */); var hostParent = getParentLNode(vcRefHost); var lContainer = createLContainer(hostParent, vcRefHost.view,...
javascript
function getOrCreateContainerRef(di) { if (!di.viewContainerRef) { var vcRefHost = di.node; ngDevMode && assertNodeOfPossibleTypes(vcRefHost, 0 /* Container */, 3 /* Element */); var hostParent = getParentLNode(vcRefHost); var lContainer = createLContainer(hostParent, vcRefHost.view,...
[ "function", "getOrCreateContainerRef", "(", "di", ")", "{", "if", "(", "!", "di", ".", "viewContainerRef", ")", "{", "var", "vcRefHost", "=", "di", ".", "node", ";", "ngDevMode", "&&", "assertNodeOfPossibleTypes", "(", "vcRefHost", ",", "0", "/* Container */",...
Creates a ViewContainerRef and stores it on the injector. Or, if the ViewContainerRef already exists, retrieves the existing ViewContainerRef. @returns The ViewContainerRef instance to use
[ "Creates", "a", "ViewContainerRef", "and", "stores", "it", "on", "the", "injector", ".", "Or", "if", "the", "ViewContainerRef", "already", "exists", "retrieves", "the", "existing", "ViewContainerRef", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25139-L25162
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getOrCreateTemplateRef
function getOrCreateTemplateRef(di) { if (!di.templateRef) { ngDevMode && assertNodeType(di.node, 0 /* Container */); var hostNode = di.node; var hostTNode = hostNode.tNode; ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated'); di.templateRef = new Template...
javascript
function getOrCreateTemplateRef(di) { if (!di.templateRef) { ngDevMode && assertNodeType(di.node, 0 /* Container */); var hostNode = di.node; var hostTNode = hostNode.tNode; ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated'); di.templateRef = new Template...
[ "function", "getOrCreateTemplateRef", "(", "di", ")", "{", "if", "(", "!", "di", ".", "templateRef", ")", "{", "ngDevMode", "&&", "assertNodeType", "(", "di", ".", "node", ",", "0", "/* Container */", ")", ";", "var", "hostNode", "=", "di", ".", "node", ...
Creates a TemplateRef and stores it on the injector. Or, if the TemplateRef already exists, retrieves the existing TemplateRef. @param di The node injector where we should store a created TemplateRef @returns The TemplateRef instance to use
[ "Creates", "a", "TemplateRef", "and", "stores", "it", "on", "the", "injector", ".", "Or", "if", "the", "TemplateRef", "already", "exists", "retrieves", "the", "existing", "TemplateRef", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25258-L25267
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
i18nExpMapping
function i18nExpMapping(translation, placeholders) { var staticText = translation.split(i18nTagRegex); // odd indexes are placeholders for (var i = 1; i < staticText.length; i += 2) { staticText[i] = placeholders[staticText[i]]; } return staticText; }
javascript
function i18nExpMapping(translation, placeholders) { var staticText = translation.split(i18nTagRegex); // odd indexes are placeholders for (var i = 1; i < staticText.length; i += 2) { staticText[i] = placeholders[staticText[i]]; } return staticText; }
[ "function", "i18nExpMapping", "(", "translation", ",", "placeholders", ")", "{", "var", "staticText", "=", "translation", ".", "split", "(", "i18nTagRegex", ")", ";", "// odd indexes are placeholders", "for", "(", "var", "i", "=", "1", ";", "i", "<", "staticTe...
Takes a translation string and the initial list of expressions and returns a list of instructions that will be used to translate an attribute. Even indexes contain static strings, while odd indexes contain the index of the expression whose value will be concatenated into the final translation.
[ "Takes", "a", "translation", "string", "and", "the", "initial", "list", "of", "expressions", "and", "returns", "a", "list", "of", "instructions", "that", "will", "be", "used", "to", "translate", "an", "attribute", ".", "Even", "indexes", "contain", "static", ...
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25583-L25590
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
i18nInterpolation1
function i18nInterpolation1(instructions, v0) { var different = bindingUpdated(v0); if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexes are bindings if (i & 1) { res += stringify$1(v0); } ...
javascript
function i18nInterpolation1(instructions, v0) { var different = bindingUpdated(v0); if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexes are bindings if (i & 1) { res += stringify$1(v0); } ...
[ "function", "i18nInterpolation1", "(", "instructions", ",", "v0", ")", "{", "var", "different", "=", "bindingUpdated", "(", "v0", ")", ";", "if", "(", "!", "different", ")", "{", "return", "NO_CHANGE", ";", "}", "var", "res", "=", "''", ";", "for", "("...
Checks if the value of an expression has changed and replaces it by its value in a translation, or returns NO_CHANGE. @param instructions A list of instructions that will be used to translate an attribute. @param v0 value checked for change. @returns The concatenated string when any of the arguments changes, `NO_CHAN...
[ "Checks", "if", "the", "value", "of", "an", "expression", "has", "changed", "and", "replaces", "it", "by", "its", "value", "in", "a", "translation", "or", "returns", "NO_CHANGE", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25600-L25616
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
i18nInterpolation2
function i18nInterpolation2(instructions, v0, v1) { var different = bindingUpdated2(v0, v1); if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexes are bindings if (i & 1) { // Extract bits va...
javascript
function i18nInterpolation2(instructions, v0, v1) { var different = bindingUpdated2(v0, v1); if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexes are bindings if (i & 1) { // Extract bits va...
[ "function", "i18nInterpolation2", "(", "instructions", ",", "v0", ",", "v1", ")", "{", "var", "different", "=", "bindingUpdated2", "(", "v0", ",", "v1", ")", ";", "if", "(", "!", "different", ")", "{", "return", "NO_CHANGE", ";", "}", "var", "res", "="...
Checks if the values of up to 2 expressions have changed and replaces them by their values in a translation, or returns NO_CHANGE. @param instructions A list of instructions that will be used to translate an attribute. @param v0 value checked for change. @param v1 value checked for change. @returns The concatenated s...
[ "Checks", "if", "the", "values", "of", "up", "to", "2", "expressions", "have", "changed", "and", "replaces", "them", "by", "their", "values", "in", "a", "translation", "or", "returns", "NO_CHANGE", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25627-L25648
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
i18nInterpolation3
function i18nInterpolation3(instructions, v0, v1, v2) { var different = bindingUpdated2(v0, v1); different = bindingUpdated(v2) || different; if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexes are bindings if...
javascript
function i18nInterpolation3(instructions, v0, v1, v2) { var different = bindingUpdated2(v0, v1); different = bindingUpdated(v2) || different; if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexes are bindings if...
[ "function", "i18nInterpolation3", "(", "instructions", ",", "v0", ",", "v1", ",", "v2", ")", "{", "var", "different", "=", "bindingUpdated2", "(", "v0", ",", "v1", ")", ";", "different", "=", "bindingUpdated", "(", "v2", ")", "||", "different", ";", "if"...
Checks if the values of up to 3 expressions have changed and replaces them by their values in a translation, or returns NO_CHANGE. @param instructions A list of instructions that will be used to translate an attribute. @param v0 value checked for change. @param v1 value checked for change. @param v2 value checked for ...
[ "Checks", "if", "the", "values", "of", "up", "to", "3", "expressions", "have", "changed", "and", "replaces", "them", "by", "their", "values", "in", "a", "translation", "or", "returns", "NO_CHANGE", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25660-L25683
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
i18nInterpolation4
function i18nInterpolation4(instructions, v0, v1, v2, v3) { var different = bindingUpdated4(v0, v1, v2, v3); if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexes are bindings if (i & 1) { // Extract bit...
javascript
function i18nInterpolation4(instructions, v0, v1, v2, v3) { var different = bindingUpdated4(v0, v1, v2, v3); if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexes are bindings if (i & 1) { // Extract bit...
[ "function", "i18nInterpolation4", "(", "instructions", ",", "v0", ",", "v1", ",", "v2", ",", "v3", ")", "{", "var", "different", "=", "bindingUpdated4", "(", "v0", ",", "v1", ",", "v2", ",", "v3", ")", ";", "if", "(", "!", "different", ")", "{", "r...
Checks if the values of up to 4 expressions have changed and replaces them by their values in a translation, or returns NO_CHANGE. @param instructions A list of instructions that will be used to translate an attribute. @param v0 value checked for change. @param v1 value checked for change. @param v2 value checked for ...
[ "Checks", "if", "the", "values", "of", "up", "to", "4", "expressions", "have", "changed", "and", "replaces", "them", "by", "their", "values", "in", "a", "translation", "or", "returns", "NO_CHANGE", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25696-L25718
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
i18nInterpolation5
function i18nInterpolation5(instructions, v0, v1, v2, v3, v4) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated(v4) || different; if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexes are bin...
javascript
function i18nInterpolation5(instructions, v0, v1, v2, v3, v4) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated(v4) || different; if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexes are bin...
[ "function", "i18nInterpolation5", "(", "instructions", ",", "v0", ",", "v1", ",", "v2", ",", "v3", ",", "v4", ")", "{", "var", "different", "=", "bindingUpdated4", "(", "v0", ",", "v1", ",", "v2", ",", "v3", ")", ";", "different", "=", "bindingUpdated"...
Checks if the values of up to 5 expressions have changed and replaces them by their values in a translation, or returns NO_CHANGE. @param instructions A list of instructions that will be used to translate an attribute. @param v0 value checked for change. @param v1 value checked for change. @param v2 value checked for ...
[ "Checks", "if", "the", "values", "of", "up", "to", "5", "expressions", "have", "changed", "and", "replaces", "them", "by", "their", "values", "in", "a", "translation", "or", "returns", "NO_CHANGE", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25732-L25756
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
i18nInterpolation6
function i18nInterpolation6(instructions, v0, v1, v2, v3, v4, v5) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated2(v4, v5) || different; if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexe...
javascript
function i18nInterpolation6(instructions, v0, v1, v2, v3, v4, v5) { var different = bindingUpdated4(v0, v1, v2, v3); different = bindingUpdated2(v4, v5) || different; if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0; i < instructions.length; i++) { // Odd indexe...
[ "function", "i18nInterpolation6", "(", "instructions", ",", "v0", ",", "v1", ",", "v2", ",", "v3", ",", "v4", ",", "v5", ")", "{", "var", "different", "=", "bindingUpdated4", "(", "v0", ",", "v1", ",", "v2", ",", "v3", ")", ";", "different", "=", "...
Checks if the values of up to 6 expressions have changed and replaces them by their values in a translation, or returns NO_CHANGE. @param instructions A list of instructions that will be used to translate an attribute. @param v0 value checked for change. @param v1 value checked for change. @param v2 value checked for ...
[ "Checks", "if", "the", "values", "of", "up", "to", "6", "expressions", "have", "changed", "and", "replaces", "them", "by", "their", "values", "in", "a", "translation", "or", "returns", "NO_CHANGE", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25770-L25794
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
i18nInterpolationV
function i18nInterpolationV(instructions, values) { var different = false; for (var i = 0; i < values.length; i++) { // Check if bindings have changed bindingUpdated(values[i]) && (different = true); } if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0...
javascript
function i18nInterpolationV(instructions, values) { var different = false; for (var i = 0; i < values.length; i++) { // Check if bindings have changed bindingUpdated(values[i]) && (different = true); } if (!different) { return NO_CHANGE; } var res = ''; for (var i = 0...
[ "function", "i18nInterpolationV", "(", "instructions", ",", "values", ")", "{", "var", "different", "=", "false", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "values", ".", "length", ";", "i", "++", ")", "{", "// Check if bindings have changed", ...
Create a translated interpolation binding with a variable number of expressions. If there are 1 to 8 expressions then `i18nInterpolation()` should be used instead. It is faster because there is no need to create an array of expressions and iterate over it. @returns The concatenated string when any of the arguments ch...
[ "Create", "a", "translated", "interpolation", "binding", "with", "a", "variable", "number", "of", "expressions", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25885-L25905
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
pureFunction1
function pureFunction1(slotOffset, pureFn, exp, thisArg) { ngDevMode && assertReservedSlotInitialized(slotOffset, 2); var index = moveBindingIndexToReservedSlot(slotOffset); var value = bindingUpdated(exp) ? checkAndUpdateBinding$1(thisArg ? pureFn.call(thisArg, exp) : pureFn(exp)) : consume...
javascript
function pureFunction1(slotOffset, pureFn, exp, thisArg) { ngDevMode && assertReservedSlotInitialized(slotOffset, 2); var index = moveBindingIndexToReservedSlot(slotOffset); var value = bindingUpdated(exp) ? checkAndUpdateBinding$1(thisArg ? pureFn.call(thisArg, exp) : pureFn(exp)) : consume...
[ "function", "pureFunction1", "(", "slotOffset", ",", "pureFn", ",", "exp", ",", "thisArg", ")", "{", "ngDevMode", "&&", "assertReservedSlotInitialized", "(", "slotOffset", ",", "2", ")", ";", "var", "index", "=", "moveBindingIndexToReservedSlot", "(", "slotOffset"...
If the value of the provided exp has changed, calls the pure function to return an updated value. Or if the value has not changed, returns cached value. @param slotOffset the offset in the reserved slot space {@link reserveSlots} @param pureFn Function that returns an updated value @param exp Updated expression value ...
[ "If", "the", "value", "of", "the", "provided", "exp", "has", "changed", "calls", "the", "pure", "function", "to", "return", "an", "updated", "value", ".", "Or", "if", "the", "value", "has", "not", "changed", "returns", "cached", "value", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L25999-L26007
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
pureFunctionV
function pureFunctionV(slotOffset, pureFn, exps, thisArg) { ngDevMode && assertReservedSlotInitialized(slotOffset, exps.length + 1); var index = moveBindingIndexToReservedSlot(slotOffset); var different = false; for (var i = 0; i < exps.length; i++) { bindingUpdated(exps[i]) && (different = true...
javascript
function pureFunctionV(slotOffset, pureFn, exps, thisArg) { ngDevMode && assertReservedSlotInitialized(slotOffset, exps.length + 1); var index = moveBindingIndexToReservedSlot(slotOffset); var different = false; for (var i = 0; i < exps.length; i++) { bindingUpdated(exps[i]) && (different = true...
[ "function", "pureFunctionV", "(", "slotOffset", ",", "pureFn", ",", "exps", ",", "thisArg", ")", "{", "ngDevMode", "&&", "assertReservedSlotInitialized", "(", "slotOffset", ",", "exps", ".", "length", "+", "1", ")", ";", "var", "index", "=", "moveBindingIndexT...
pureFunction instruction that can support any number of bindings. If the value of any provided exp has changed, calls the pure function to return an updated value. Or if no values have changed, returns cached value. @param slotOffset the offset in the reserved slot space {@link reserveSlots} @param pureFn A pure func...
[ "pureFunction", "instruction", "that", "can", "support", "any", "number", "of", "bindings", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L26192-L26202
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getPipeDef
function getPipeDef(name, registry) { if (registry) { for (var i = 0; i < registry.length; i++) { var pipeDef = registry[i]; if (name === pipeDef.name) { return pipeDef; } } } throw new Error("Pipe with name '" + name + "' not found!"); }
javascript
function getPipeDef(name, registry) { if (registry) { for (var i = 0; i < registry.length; i++) { var pipeDef = registry[i]; if (name === pipeDef.name) { return pipeDef; } } } throw new Error("Pipe with name '" + name + "' not found!"); }
[ "function", "getPipeDef", "(", "name", ",", "registry", ")", "{", "if", "(", "registry", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "registry", ".", "length", ";", "i", "++", ")", "{", "var", "pipeDef", "=", "registry", "[", "i", ...
Searches the pipe registry for a pipe with the given name. If one is found, returns the pipe. Otherwise, an error is thrown because the pipe cannot be resolved. @param name Name of pipe to resolve @param registry Full list of available pipes @returns Matching PipeDef
[ "Searches", "the", "pipe", "registry", "for", "a", "pipe", "with", "the", "given", "name", ".", "If", "one", "is", "found", "returns", "the", "pipe", ".", "Otherwise", "an", "error", "is", "thrown", "because", "the", "pipe", "cannot", "be", "resolved", "...
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L26244-L26254
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
pipeBind1
function pipeBind1(index, slotOffset, v1) { var pipeInstance = load(index); return isPure(index) ? pureFunction1(slotOffset, pipeInstance.transform, v1, pipeInstance) : pipeInstance.transform(v1); }
javascript
function pipeBind1(index, slotOffset, v1) { var pipeInstance = load(index); return isPure(index) ? pureFunction1(slotOffset, pipeInstance.transform, v1, pipeInstance) : pipeInstance.transform(v1); }
[ "function", "pipeBind1", "(", "index", ",", "slotOffset", ",", "v1", ")", "{", "var", "pipeInstance", "=", "load", "(", "index", ")", ";", "return", "isPure", "(", "index", ")", "?", "pureFunction1", "(", "slotOffset", ",", "pipeInstance", ".", "transform"...
Invokes a pipe with 1 arguments. This instruction acts as a guard to {@link PipeTransform#transform} invoking the pipe only when an input to the pipe changes. @param index Pipe index where the pipe was stored on creation. @param slotOffset the offset in the reserved slot space {@link reserveSlots} @param v1 1st argum...
[ "Invokes", "a", "pipe", "with", "1", "arguments", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L26265-L26269
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
pipeBind2
function pipeBind2(index, slotOffset, v1, v2) { var pipeInstance = load(index); return isPure(index) ? pureFunction2(slotOffset, pipeInstance.transform, v1, v2, pipeInstance) : pipeInstance.transform(v1, v2); }
javascript
function pipeBind2(index, slotOffset, v1, v2) { var pipeInstance = load(index); return isPure(index) ? pureFunction2(slotOffset, pipeInstance.transform, v1, v2, pipeInstance) : pipeInstance.transform(v1, v2); }
[ "function", "pipeBind2", "(", "index", ",", "slotOffset", ",", "v1", ",", "v2", ")", "{", "var", "pipeInstance", "=", "load", "(", "index", ")", ";", "return", "isPure", "(", "index", ")", "?", "pureFunction2", "(", "slotOffset", ",", "pipeInstance", "."...
Invokes a pipe with 2 arguments. This instruction acts as a guard to {@link PipeTransform#transform} invoking the pipe only when an input to the pipe changes. @param index Pipe index where the pipe was stored on creation. @param slotOffset the offset in the reserved slot space {@link reserveSlots} @param v1 1st argum...
[ "Invokes", "a", "pipe", "with", "2", "arguments", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L26281-L26285
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
pipeBind3
function pipeBind3(index, slotOffset, v1, v2, v3) { var pipeInstance = load(index); return isPure(index) ? pureFunction3(slotOffset, pipeInstance.transform, v1, v2, v3, pipeInstance) : pipeInstance.transform(v1, v2, v3); }
javascript
function pipeBind3(index, slotOffset, v1, v2, v3) { var pipeInstance = load(index); return isPure(index) ? pureFunction3(slotOffset, pipeInstance.transform, v1, v2, v3, pipeInstance) : pipeInstance.transform(v1, v2, v3); }
[ "function", "pipeBind3", "(", "index", ",", "slotOffset", ",", "v1", ",", "v2", ",", "v3", ")", "{", "var", "pipeInstance", "=", "load", "(", "index", ")", ";", "return", "isPure", "(", "index", ")", "?", "pureFunction3", "(", "slotOffset", ",", "pipeI...
Invokes a pipe with 3 arguments. This instruction acts as a guard to {@link PipeTransform#transform} invoking the pipe only when an input to the pipe changes. @param index Pipe index where the pipe was stored on creation. @param slotOffset the offset in the reserved slot space {@link reserveSlots} @param v1 1st argum...
[ "Invokes", "a", "pipe", "with", "3", "arguments", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L26298-L26303
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
pipeBind4
function pipeBind4(index, slotOffset, v1, v2, v3, v4) { var pipeInstance = load(index); return isPure(index) ? pureFunction4(slotOffset, pipeInstance.transform, v1, v2, v3, v4, pipeInstance) : pipeInstance.transform(v1, v2, v3, v4); }
javascript
function pipeBind4(index, slotOffset, v1, v2, v3, v4) { var pipeInstance = load(index); return isPure(index) ? pureFunction4(slotOffset, pipeInstance.transform, v1, v2, v3, v4, pipeInstance) : pipeInstance.transform(v1, v2, v3, v4); }
[ "function", "pipeBind4", "(", "index", ",", "slotOffset", ",", "v1", ",", "v2", ",", "v3", ",", "v4", ")", "{", "var", "pipeInstance", "=", "load", "(", "index", ")", ";", "return", "isPure", "(", "index", ")", "?", "pureFunction4", "(", "slotOffset", ...
Invokes a pipe with 4 arguments. This instruction acts as a guard to {@link PipeTransform#transform} invoking the pipe only when an input to the pipe changes. @param index Pipe index where the pipe was stored on creation. @param slotOffset the offset in the reserved slot space {@link reserveSlots} @param v1 1st argum...
[ "Invokes", "a", "pipe", "with", "4", "arguments", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L26317-L26322
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
pipeBindV
function pipeBindV(index, slotOffset, values) { var pipeInstance = load(index); return isPure(index) ? pureFunctionV(slotOffset, pipeInstance.transform, values, pipeInstance) : pipeInstance.transform.apply(pipeInstance, values); }
javascript
function pipeBindV(index, slotOffset, values) { var pipeInstance = load(index); return isPure(index) ? pureFunctionV(slotOffset, pipeInstance.transform, values, pipeInstance) : pipeInstance.transform.apply(pipeInstance, values); }
[ "function", "pipeBindV", "(", "index", ",", "slotOffset", ",", "values", ")", "{", "var", "pipeInstance", "=", "load", "(", "index", ")", ";", "return", "isPure", "(", "index", ")", "?", "pureFunctionV", "(", "slotOffset", ",", "pipeInstance", ".", "transf...
Invokes a pipe with variable number of arguments. This instruction acts as a guard to {@link PipeTransform#transform} invoking the pipe only when an input to the pipe changes. @param index Pipe index where the pipe was stored on creation. @param slotOffset the offset in the reserved slot space {@link reserveSlots} @p...
[ "Invokes", "a", "pipe", "with", "variable", "number", "of", "arguments", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L26333-L26337
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
getIdxOfMatchingDirective
function getIdxOfMatchingDirective(node, type) { var defs = node.view[TVIEW].directives; var flags = node.tNode.flags; var count = flags & 4095 /* DirectiveCountMask */; var start = flags >> 14 /* DirectiveStartingIndexShift */; var end = start + count; for (var i = start; i < end; i++) { ...
javascript
function getIdxOfMatchingDirective(node, type) { var defs = node.view[TVIEW].directives; var flags = node.tNode.flags; var count = flags & 4095 /* DirectiveCountMask */; var start = flags >> 14 /* DirectiveStartingIndexShift */; var end = start + count; for (var i = start; i < end; i++) { ...
[ "function", "getIdxOfMatchingDirective", "(", "node", ",", "type", ")", "{", "var", "defs", "=", "node", ".", "view", "[", "TVIEW", "]", ".", "directives", ";", "var", "flags", "=", "node", ".", "tNode", ".", "flags", ";", "var", "count", "=", "flags",...
Iterates over all the directives for a node and returns index of a directive for a given type. @param node Node on which directives are present. @param type Type of a directive to look for. @returns Index of a found directive or null when none found.
[ "Iterates", "over", "all", "the", "directives", "for", "a", "node", "and", "returns", "index", "of", "a", "directive", "for", "a", "given", "type", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L26496-L26509
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
query
function query(memoryIndex, predicate, descend, read) { ngDevMode && assertPreviousIsParent(); var queryList = new QueryList$1(); var queries = getCurrentQueries(LQueries_); queries.track(queryList, predicate, descend, read); storeCleanupWithContext(null, queryList, queryList.destroy); if (memor...
javascript
function query(memoryIndex, predicate, descend, read) { ngDevMode && assertPreviousIsParent(); var queryList = new QueryList$1(); var queries = getCurrentQueries(LQueries_); queries.track(queryList, predicate, descend, read); storeCleanupWithContext(null, queryList, queryList.destroy); if (memor...
[ "function", "query", "(", "memoryIndex", ",", "predicate", ",", "descend", ",", "read", ")", "{", "ngDevMode", "&&", "assertPreviousIsParent", "(", ")", ";", "var", "queryList", "=", "new", "QueryList$1", "(", ")", ";", "var", "queries", "=", "getCurrentQuer...
Creates and returns a QueryList. @param memoryIndex The index in memory where the QueryList should be saved. If null, this is is a content query and the QueryList will be saved later through directiveCreate. @param predicate The type for which the query will search @param descend Whether or not to descend into childre...
[ "Creates", "and", "returns", "a", "QueryList", "." ]
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L26670-L26680
train
CuppaLabs/angular2-multiselect-dropdown
docs/vendor.js
queryRefresh
function queryRefresh(queryList) { var queryListImpl = queryList; if (queryList.dirty) { queryList.reset(queryListImpl._valuesTree); queryList.notifyOnChanges(); return true; } return false; }
javascript
function queryRefresh(queryList) { var queryListImpl = queryList; if (queryList.dirty) { queryList.reset(queryListImpl._valuesTree); queryList.notifyOnChanges(); return true; } return false; }
[ "function", "queryRefresh", "(", "queryList", ")", "{", "var", "queryListImpl", "=", "queryList", ";", "if", "(", "queryList", ".", "dirty", ")", "{", "queryList", ".", "reset", "(", "queryListImpl", ".", "_valuesTree", ")", ";", "queryList", ".", "notifyOnC...
Refreshes a query by combining matches from all active views and removing matches from deleted views. Returns true if a query got dirty during change detection, false otherwise.
[ "Refreshes", "a", "query", "by", "combining", "matches", "from", "all", "active", "views", "and", "removing", "matches", "from", "deleted", "views", ".", "Returns", "true", "if", "a", "query", "got", "dirty", "during", "change", "detection", "false", "otherwis...
cb94eb9af46de79c69d61b4fd37a800009fb70d3
https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/cb94eb9af46de79c69d61b4fd37a800009fb70d3/docs/vendor.js#L26686-L26694
train