src/js/pagination/paging-collection.js
function() {
                var deferred = $.Deferred();
                if (this.isStale) {
                    this.setPage(1)
                        .done(function() {
                            deferred.resolve();
                        });
                } else {
                    deferred.resolve();
                }
                return deferred.promise();
            }
function() {
                var deferred = $.Deferred();
                if (this.isStale) {
                    this.setPage(1)
                        .done(function() {
                            deferred.resolve();
                        });
                } else {
                    deferred.resolve();
                }
                return deferred.promise();
            }
function ( ) { var deferred = $ . Deferred ( ) ; if ( this . isStale ) { this . setPage ( 1 ) . done ( function ( ) { deferred . resolve ( ) ; } ) ; } else { deferred . resolve ( ) ; } return deferred . promise ( ) ; }
Refreshes the collection if it has been marked as stale.

@returns {promise} Returns a promise representing the
refresh.
Refreshes the collection if it has been marked as stale .