"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cdk/drag-drop/directives/drag.ts" between
material2-7.3.2.tar.gz and material2-7.3.3.tar.gz

About: material2 offers Material Design components for Angular.

drag.ts  (material2-7.3.2):drag.ts  (material2-7.3.3)
skipping to change at line 252 skipping to change at line 252
).subscribe(handleInstance => { ).subscribe(handleInstance => {
// Enabled/disable the handle that changed in the DragRef. // Enabled/disable the handle that changed in the DragRef.
const dragRef = this._dragRef; const dragRef = this._dragRef;
const handle = handleInstance.element.nativeElement; const handle = handleInstance.element.nativeElement;
handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enab leHandle(handle); handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enab leHandle(handle);
}); });
}); });
} }
ngOnChanges(changes: SimpleChanges) { ngOnChanges(changes: SimpleChanges) {
const rootSelectorChange = changes.rootElementSelector; const rootSelectorChange = changes['rootElementSelector'];
// We don't have to react to the first change since it's being // We don't have to react to the first change since it's being
// handled in `ngAfterViewInit` where it needs to be deferred. // handled in `ngAfterViewInit` where it needs to be deferred.
if (rootSelectorChange && !rootSelectorChange.firstChange) { if (rootSelectorChange && !rootSelectorChange.firstChange) {
this._updateRootElement(); this._updateRootElement();
} }
} }
ngOnDestroy() { ngOnDestroy() {
this._destroyed.next(); this._destroyed.next();
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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