mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Merge pull request #94 from bgilbert/drawer-events
Fix Drawer event emission
This commit is contained in:
commit
096ba80d73
@ -94,6 +94,7 @@ $.Drawer = function( options ) {
|
||||
$.extend( true, this, {
|
||||
|
||||
//internal state properties
|
||||
viewer: null,
|
||||
downloading: 0,
|
||||
tilesMatrix: {},
|
||||
tilesLoaded: [],
|
||||
|
@ -1047,6 +1047,7 @@ function openTileSource( viewer, source ) {
|
||||
_this.source.overlays = _this.source.overlays || [];
|
||||
|
||||
_this.drawer = new $.Drawer({
|
||||
viewer: _this,
|
||||
source: _this.source,
|
||||
viewport: _this.viewport,
|
||||
element: _this.canvas,
|
||||
|
@ -23,7 +23,6 @@
|
||||
var openHandler = function(eventSender, eventData) {
|
||||
viewer.removeHandler('open', openHandler);
|
||||
ok(true, 'Open event was sent');
|
||||
viewer.drawer.viewer = viewer;
|
||||
viewer.addHandler('tile-drawn', tileDrawnHandler);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user