summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/jcarousel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/jcarousel.js b/js/jcarousel.js
index 8e64bce..0046f64 100644
--- a/js/jcarousel.js
+++ b/js/jcarousel.js
@@ -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>';
}