本文整理汇总了TypeScript中angular2/src/facade/collection.ListWrapper.remove方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ListWrapper.remove方法的具体用法?TypeScript ListWrapper.remove怎么用?TypeScript ListWrapper.remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类angular2/src/facade/collection.ListWrapper
的用法示例。
在下文中一共展示了ListWrapper.remove方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: detachFreeEmbeddedView
detachFreeEmbeddedView(parentView: viewModule.AppView, boundElementIndex: number,
view: viewModule.AppView) {
var viewContainer = parentView.viewContainers[boundElementIndex];
view.changeDetector.remove();
ListWrapper.remove(viewContainer.freeViews, view);
for (var i = 0; i < view.rootElementInjectors.length; ++i) {
view.rootElementInjectors[i].unlink();
}
}
示例2: _deregisterViewContainer
_deregisterViewContainer(value, container) {
if (value == _whenDefault)
return ;
var containers = MapWrapper.get(this._valueViewContainers, value);
if (containers.length == 1) {
MapWrapper.delete(this._valueViewContainers, value);
} else {
ListWrapper.remove(containers, container);
}
}
示例3: _processRequest
_processRequest(request) {
var url = request.url;
if (this._expectations.length > 0) {
var expectation = this._expectations[0];
if (expectation.url == url) {
ListWrapper.remove(this._expectations, expectation);
request.complete(expectation.response);
return ;
}
}
if (MapWrapper.contains(this._definitions, url)) {
var response = MapWrapper.get(this._definitions, url);
request.complete(normalizeBlank(response));
return ;
}
throw new BaseException(`Unexpected request ${url}`);
}
示例4: _onWhenValueChanged
_onWhenValueChanged(oldWhen, newWhen, viewContainer) {
this._deregisterViewContainer(oldWhen, viewContainer);
this._registerViewContainer(newWhen, viewContainer);
if (oldWhen === this._switchValue) {
viewContainer.remove();
ListWrapper.remove(this._activeViewContainers, viewContainer);
} else if (newWhen === this._switchValue) {
if (this._useDefault) {
this._useDefault = false;
this._emptyAllActiveViewContainers();
}
viewContainer.create();
ListWrapper.push(this._activeViewContainers, viewContainer);
}
if (this._activeViewContainers.length === 0 && !this._useDefault) {
this._useDefault = true;
this._activateViewContainers(MapWrapper.get(this._valueViewContainers, _whenDefault));
}
}
示例5: return
return () => {
ListWrapper.remove(StringMapWrapper.get(el._eventListenersMap, evt), listener);
};
示例6: removeChild
removeChild(cd) {
ListWrapper.remove(this.lightDomChildren, cd);
}
示例7:
ListWrapper.forEach(modifierKeys, (modifierName) => {
if (ListWrapper.contains(parts, modifierName)) {
ListWrapper.remove(parts, modifierName);
fullKey += modifierName + '.';
}
});
示例8: detachFreeHostView
detachFreeHostView(parentView: viewModule.AppView, hostView: viewModule.AppView) {
parentView.changeDetector.removeChild(hostView.changeDetector);
ListWrapper.remove(parentView.freeHostViews, hostView);
}
示例9: removeShadowDomChild
removeShadowDomChild(cd: ChangeDetector) { ListWrapper.remove(this.shadowDomChildren, cd); }
示例10: removeChild
removeChild(cd: ChangeDetector) { ListWrapper.remove(this.lightDomChildren, cd); }