src/datalist.js
function () {
		if ( isNaN( this.pageSize ) ) {
			throw new Error( label.error.invalidArguments );
		}

		return number.round( ( !this.filter ? this.total : this.filtered.length ) / this.pageSize, "up" );
	}
function () {
		if ( isNaN( this.pageSize ) ) {
			throw new Error( label.error.invalidArguments );
		}

		return number.round( ( !this.filter ? this.total : this.filtered.length ) / this.pageSize, "up" );
	}
function ( ) { if ( isNaN ( this . pageSize ) ) { throw new Error ( label . error . invalidArguments ) ; } return number . round ( ( ! this . filter ? this . total : this . filtered . length ) / this . pageSize , "up" ) ; }
Calculates the total pages

@method pages
@private
@return {Number} Total pages
Calculates the total pages