File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
projects/igniteui-angular/src/lib/carousel Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ export class IgxCarouselComponent implements OnDestroy {
112112 * @memberof IgxCarouselComponent
113113 */
114114 set interval ( value : number ) {
115- if ( this . _platformBrowser ) {
115+ if ( this . platformUtil . isBrowser ) {
116116 this . _interval = + value ;
117117 this . _restartInterval ( ) ;
118118 }
@@ -203,11 +203,8 @@ export class IgxCarouselComponent implements OnDestroy {
203203 private _currentSlide : IgxSlideComponent ;
204204 private _destroyed : boolean ;
205205 private _total = 0 ;
206- private _platformBrowser : boolean ;
207206
208- constructor ( private element : ElementRef , private platformUtil : PlatformUtil ) {
209- this . _platformBrowser = this . platformUtil . isBrowser ;
210- }
207+ constructor ( private element : ElementRef , private platformUtil : PlatformUtil ) { }
211208 /**
212209 *@hidden
213210 */
You can’t perform that action at this time.
0 commit comments