w/extensions/MobileFrontend/resources/mobile.watchlist/WatchList.js
/**
	 * An extension of the PageList which preloads pages as all being watched.
	 * @extends PageList
	 * @class WatchList
	 * @uses InfiniteScroll
	 *
	 * @constructor
	 * @param {Object} options Configuration options
	 */
An extension of the PageList which preloads pages as all being watched.

@constructor
@param {Object} options Configuration options
An extension of the PageList which preloads pages as all being watched . @constructor @param { Object } options Configuration options
function WatchList( options ) {
		var lastTitle;
		this.infiniteScroll = new InfiniteScroll();
		this.infiniteScroll.on( 'load', this._loadPages.bind( this ) );
		if ( options.el ) {
			lastTitle = this.getLastTitle( options.el );
		}
		this.gateway = new WatchListGateway( options.api, lastTitle );
		WatchstarPageList.apply( this, arguments );
	}
function WatchList ( options ) { var lastTitle ; this . infiniteScroll = new InfiniteScroll ( ) ; this . infiniteScroll . on ( 'load' , this . _loadPages . bind ( this ) ) ; if ( options . el ) { lastTitle = this . getLastTitle ( options . el ) ; } this . gateway = new WatchListGateway ( options . api , lastTitle ) ; WatchstarPageList . apply ( this , arguments ) ; }
An extension of the PageList which preloads pages as all being watched.
An extension of the PageList which preloads pages as all being watched .
// Set up infinite scroll helper and listen to events