"Fossies" - the Fresh Open Source Software Archive  

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

About: material2 offers Material Design components for Angular.

dir.ts  (material2-7.3.2):dir.ts  (material2-7.3.3)
skipping to change at line 50 skipping to change at line 50
_rawDir: string; _rawDir: string;
/** Event emitted when the direction changes. */ /** Event emitted when the direction changes. */
@Output('dirChange') change = new EventEmitter<Direction>(); @Output('dirChange') change = new EventEmitter<Direction>();
/** @docs-private */ /** @docs-private */
@Input() @Input()
get dir(): Direction { return this._dir; } get dir(): Direction { return this._dir; }
set dir(value: Direction) { set dir(value: Direction) {
const old = this._dir; const old = this._dir;
const normalizedValue = value ? value.toLowerCase() : value;
this._rawDir = value; this._rawDir = value;
this._dir = (value === 'ltr' || value === 'rtl') ? value : 'ltr'; this._dir = (normalizedValue === 'ltr' || normalizedValue === 'rtl') ? norma lizedValue : 'ltr';
if (old !== this._dir && this._isInitialized) { if (old !== this._dir && this._isInitialized) {
this.change.emit(this._dir); this.change.emit(this._dir);
} }
} }
/** Current layout direction of the element. */ /** Current layout direction of the element. */
get value(): Direction { return this.dir; } get value(): Direction { return this.dir; }
/** Initialize once default value has been set. */ /** Initialize once default value has been set. */
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

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