From 40d8f84187bde7bced61d11e17e1442df9929166 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Fri, 12 Dec 2014 16:28:02 -0800 Subject: [PATCH] Testing --- test/demo/collections/main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/demo/collections/main.js b/test/demo/collections/main.js index c3a71958..cc18a064 100644 --- a/test/demo/collections/main.js +++ b/test/demo/collections/main.js @@ -98,8 +98,11 @@ this.viewer = OpenSeadragon(config); if (testInitialOpen) { - this.viewer.addHandler( "open", function() { - }); + function openHandler() { + self.viewer.removeHandler('open', openHandler); + } + + this.viewer.addHandler( "open", openHandler); } if (testMargins) {