changeset 994:8be56a27db58

fixed problem when using arrows.js without buttons.js. handling of settings.buttons reference still not perfect.
author robcast
date Thu, 09 Feb 2012 17:54:59 +0100
parents 862d2ae56c20
children 76cffbaf0083
files webapp/src/main/webapp/jquery/jquery.digilib.arrows.js
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.arrows.js	Tue Feb 07 00:24:21 2012 +0100
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.arrows.js	Thu Feb 09 17:54:59 2012 +0100
@@ -88,6 +88,8 @@
         $.extend(true, digilib.defaults, defaults); // make deep copy
         $.extend(digilib.buttons, buttons);
         $.extend(digilib.actions, actions);
+        // update buttons reference in defaults
+        digilib.defaults.buttons = digilib.buttons;
     };
 
     // plugin initialization