@@ -57,12 +57,9 @@ export class IgControlBase<Model> implements DoCheck {
5757 protected _optsDiffer : any ;
5858 protected _kvalDiffers :any ;
5959 protected _events : Map < string , string > ;
60- protected _allowChangeDetection = true ;
6160 private _evtEmmiters : any = { } ;
62- private _changeDetectionInterval : any ;
6361 private _nativeElement :any ;
6462 public widgetId : string ;
65- public changeDetectionInterval : number ;
6663
6764 constructor ( el : ElementRef , renderer : Renderer , differs : IterableDiffers , public kvalDiffers : KeyValueDiffers , public cdr : ChangeDetectorRef ) {
6865 this . _differs = differs ;
@@ -134,14 +131,6 @@ export class IgControlBase<Model> implements DoCheck {
134131 } ) ;
135132 }
136133
137- if ( this . changeDetectionInterval === undefined || this . changeDetectionInterval === null ) {
138- this . changeDetectionInterval = 500 ;
139- }
140-
141- this . _changeDetectionInterval = setInterval ( function ( ) {
142- that . _allowChangeDetection = true ;
143- } , this . changeDetectionInterval ) ;
144-
145134 jQuery ( this . _el ) . attr ( "id" , this . widgetId ) ;
146135 jQuery ( this . _el ) [ this . _widgetName ] ( this . options ) ;
147136 }
@@ -190,7 +179,6 @@ export class IgControlBase<Model> implements DoCheck {
190179 }
191180
192181 ngOnDestroy ( ) {
193- clearInterval ( this . _changeDetectionInterval ) ;
194182 jQuery ( this . _el ) [ this . _widgetName ] ( "destroy" ) ;
195183 jQuery ( this . _el ) . remove ( ) ;
196184 jQuery ( this . _nativeElement ) . remove ( ) ;
0 commit comments