# HG changeset patch # User hertzhaft # Date 1480876430 -3600 # Node ID 107159069baf23478295ede170c22d7b88bc18b2 # Parent 276327b42d76b4e279525fd842896f2326f5b426 plugin stub: slight modernization diff -r 276327b42d76 -r 107159069baf webapp/src/main/webapp/jquery/jquery.digilib.pluginstub.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.pluginstub.js Sun Dec 04 01:17:49 2016 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.pluginstub.js Sun Dec 04 19:33:50 2016 +0100 @@ -20,6 +20,7 @@ * #L% * Authors: Robert Casties, Martin Raspe */ + /** digilib plugin stub */ @@ -74,10 +75,10 @@ console.debug('initialising STUB plugin. data:', data); var $data = $(data); // install event handlers - $data.bind('setup', handleSetup); - $data.bind('update', handleUpdate); - $data.bind('redisplay', handleRedisplay); - $data.bind('dragZoom', handleDragZoom); + $data.on('setup', handleSetup); + $data.on('update', handleUpdate); + $data.on('redisplay', handleRedisplay); + $data.on('dragZoom', handleDragZoom); }; @@ -97,6 +98,7 @@ }; var handleDragZoom = function (evt, zoomArea) { + console.debug("STUB: handleDragZoom"); var data = this; };