"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/list/list.ts" between
material2-7.3.3.tar.gz and material2-7.3.4.tar.gz

About: material2 offers Material Design components for Angular.

list.ts  (material2-7.3.3):list.ts  (material2-7.3.4)
skipping to change at line 97 skipping to change at line 97
export class MatList extends _MatListMixinBase implements CanDisableRipple, OnCh anges, OnDestroy { export class MatList extends _MatListMixinBase implements CanDisableRipple, OnCh anges, OnDestroy {
/** Emits when the state of the list changes. */ /** Emits when the state of the list changes. */
_stateChanges = new Subject<void>(); _stateChanges = new Subject<void>();
/** /**
* @deprecated _elementRef parameter to be made required. * @deprecated _elementRef parameter to be made required.
* @breaking-change 8.0.0 * @breaking-change 8.0.0
*/ */
constructor(private _elementRef?: ElementRef<HTMLElement>) { constructor(private _elementRef?: ElementRef<HTMLElement>) {
super(); super();
if (this._getListType() === 'action-list' && _elementRef) {
_elementRef.nativeElement.classList.add('mat-action-list');
}
} }
_getListType(): 'list' | 'action-list' | null { _getListType(): 'list' | 'action-list' | null {
const elementRef = this._elementRef; const elementRef = this._elementRef;
// @breaking-change 8.0.0 Remove null check once _elementRef is a required p aram. // @breaking-change 8.0.0 Remove null check once _elementRef is a required p aram.
if (elementRef) { if (elementRef) {
const nodeName = elementRef.nativeElement.nodeName.toLowerCase(); const nodeName = elementRef.nativeElement.nodeName.toLowerCase();
if (nodeName === 'mat-list') { if (nodeName === 'mat-list') {
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)