mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Refactor: move the documentation comment down with the event
This commit is contained in:
parent
1a6aac578b
commit
a7cc7bbfba
@ -1832,16 +1832,6 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
*/
|
*/
|
||||||
goToPage: function( page ){
|
goToPage: function( page ){
|
||||||
if( this.tileSources && page >= 0 && page < this.tileSources.length ){
|
if( this.tileSources && page >= 0 && page < this.tileSources.length ){
|
||||||
/**
|
|
||||||
* Raised when the page is changed on a viewer configured with multiple image sources (see {@link OpenSeadragon.Viewer#goToPage}).
|
|
||||||
*
|
|
||||||
* @event page
|
|
||||||
* @memberof OpenSeadragon.Viewer
|
|
||||||
* @type {Object}
|
|
||||||
* @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event.
|
|
||||||
* @property {Number} page - The page index.
|
|
||||||
* @property {?Object} userData - Arbitrary subscriber-defined object.
|
|
||||||
*/
|
|
||||||
this._sequenceIndex = page;
|
this._sequenceIndex = page;
|
||||||
|
|
||||||
this._updateSequenceButtons( page );
|
this._updateSequenceButtons( page );
|
||||||
@ -1852,6 +1842,16 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
this.referenceStrip.setFocus( page );
|
this.referenceStrip.setFocus( page );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raised when the page is changed on a viewer configured with multiple image sources (see {@link OpenSeadragon.Viewer#goToPage}).
|
||||||
|
*
|
||||||
|
* @event page
|
||||||
|
* @memberof OpenSeadragon.Viewer
|
||||||
|
* @type {Object}
|
||||||
|
* @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event.
|
||||||
|
* @property {Number} page - The page index.
|
||||||
|
* @property {?Object} userData - Arbitrary subscriber-defined object.
|
||||||
|
*/
|
||||||
this.raiseEvent( 'page', { page: page } );
|
this.raiseEvent( 'page', { page: page } );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user