|
|
@@ -5,6 +5,8 @@ import {IncrementalStackManager} from '@ex-helpers/stack';
|
|
|
|
|
|
declare module '@angular/core' {
|
|
|
class ElementRef {
|
|
|
+ private _watchSizeCollection: any;
|
|
|
+
|
|
|
nativeElement: any;
|
|
|
|
|
|
constructor(nativeElement: any);
|
|
|
@@ -43,7 +45,7 @@ ElementRef.prototype.watchSize = function
|
|
|
enumerable: false,
|
|
|
configurable: true,
|
|
|
writable: false,
|
|
|
- value: new IncrementalStackManager<SizeCollectionItem>()
|
|
|
+ value: new IncrementalStackManager<SizeCollectionItem>('id')
|
|
|
});
|
|
|
}
|
|
|
options = extend(DEFAULT_OPTIONS, options);
|
|
|
@@ -91,7 +93,7 @@ ElementRef.prototype.watchSize = function
|
|
|
|
|
|
ElementRef.prototype.triggerSizeCheck = function () {
|
|
|
if (this._watchSizeCollection) {
|
|
|
- this._watchSizeCollection.call('triggerCheck');
|
|
|
+ this._watchSizeCollection.execute('triggerCheck');
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -101,5 +103,6 @@ ElementRef.prototype.watchChanges = function (callback: MutationCallback, option
|
|
|
observer.observe(this.nativeElement, options);
|
|
|
return () => observer.disconnect();
|
|
|
}
|
|
|
- return () => {};
|
|
|
+ return () => {
|
|
|
+ };
|
|
|
};
|