Mercurial > hg > digilib
diff client/digitallibrary/jquery/jquery.digilib.birdseye.js @ 801:2fb1f576375d jquery
stub for new plugins; overlay div for regions plugin
author | hertzhaft |
---|---|
date | Sun, 20 Feb 2011 13:24:49 +0100 |
parents | 52c5595af03e |
children | 5627e5f09848 |
line wrap: on
line diff
--- a/client/digitallibrary/jquery/jquery.digilib.birdseye.js Sun Feb 20 11:55:51 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.birdseye.js Sun Feb 20 13:24:49 2011 +0100 @@ -45,6 +45,7 @@ // plugin installation called by digilib on plugin object. var install = function(digilib) { + console.debug('installing birdseye plugin. digilib:', digilib); // import geometry classes geom = digilib.fn.geometry; FULL_AREA = geom.rectangle(0,0,1,1); @@ -61,6 +62,7 @@ // plugin initialization var init = function (data) { + console.debug('initialising birdseye plugin. data:', data); var $data = $(data); // install event handler $data.bind('setup', handleSetup); @@ -305,7 +307,7 @@ // plugin object with name and init // shared objects filled by digilib on registration - var digilib = { + var plugin = { name : 'birdseye', install : install, init : init, @@ -318,6 +320,6 @@ if ($.fn.digilib == null) { $.error("jquery.digilib.birdview must be loaded after jquery.digilib!"); } else { - $.fn.digilib('plugin', digilib); + $.fn.digilib('plugin', plugin); } })(jQuery);