src/Placement.js
/**
         * Turns the viewability watcher on and off
         * @param enabled
         * @private
         */
Turns the viewability watcher on and off
@param enabled
@private
Turns the viewability watcher on and off @param enabled @private
_toggleViewWatcher(enabled) {
            if (enabled) {
                if (this._viewWatcherIv === null) {
                    this._viewWatcherIv = setInterval(this._checkViewWatchers.bind(this), MINIMUM_VIEW_TIME / MINIMUM_VIEW_FREQ);
                }
            } else {
                clearInterval(this._viewWatcherIv);
                this._viewWatcherIv = null;
            }
        }
_toggleViewWatcher ( enabled ) { if ( enabled ) { if ( this . _viewWatcherIv === null ) { this . _viewWatcherIv = setInterval ( this . _checkViewWatchers . bind ( this ) , MINIMUM_VIEW_TIME / MINIMUM_VIEW_FREQ ) ; } } else { clearInterval ( this . _viewWatcherIv ) ; this . _viewWatcherIv = null ; } }
Turns the viewability watcher on and off
 @param enabled
 @private
Turns the viewability watcher on and off @param enabled @private