changeset 1587:107159069baf

plugin stub: slight modernization
author hertzhaft
date Sun, 04 Dec 2016 19:33:50 +0100
parents 276327b42d76
children 6892f39c1fdb
files webapp/src/main/webapp/jquery/jquery.digilib.pluginstub.js
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;
     };