# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- jcarousel\js\jcarousel.js
+++ jcarousel\js\jcarousel.js
@@ -12,7 +12,7 @@
 
     // Callbacks need to be converted from a string to an actual function.
     for (var optionKey in options) {
-      if (optionKey.match(/Callback$/)) {
+      if (optionKey.match(/Callback$/) && typeof options[optionKey] == 'string') {
         var callbackFunction = window;
         var callbackParents = options[optionKey].split('.');
         for (var objectParent in callbackParents) {
