#1025442 by hadsie: Can't set buttonNextHTML and buttonPrevHTML values to NULL.
authorNathan Haug
Fri, 14 Jan 2011 00:20:06 +0000 (00:20 +0000)
committerNathan Haug
Fri, 14 Jan 2011 00:20:06 +0000 (00:20 +0000)
js/jcarousel.js

index 8e64bce..0046f64 100644 (file)
@@ -23,7 +23,7 @@ Drupal.behaviors.jcarousel = function(context, settings) {
     }
 
     // Change next and previous buttons to links for accessibility.
-    if (!options.buttonNextHTML && !options.buttonPrevHTML) {
+    if (!options.hasOwnProperty('buttonNextHTML') && !options.hasOwnProperty('buttonPrevHTML')) {
       options.buttonNextHTML = '<a href="javascript:void(0)"></a>';
       options.buttonPrevHTML = '<a href="javascript:void(0)"></a>';
     }