This error shows up in Chrome if the effect None is chosen. This seems to be an issue with the latest version of JAIL.js. Here is a patch to fix this, it's also attached to this issue:

diff -rupN jail_old/jail.module jail/jail.module
--- jail_old/jail.module	2011-05-04 22:06:06.000000000 +0200
+++ jail/jail.module	2011-11-17 18:05:08.000000000 +0100
@@ -150,7 +150,13 @@ function theme_jail_formatter($variables
     $output .= '<noscript><img src="' . $url . '"></noscript>';
   }
   drupal_add_js(libraries_get_path('jail') . '/jquery.jail.js');
-  drupal_add_js('(function ($) {$(".lazy").jail({placeholder : "/' . variable_get('jail_loader', '/' . drupal_get_path('module', 'jail') . '/white.gif') . '", effect : "' . $variables['jail_effect'] .'"});})(jQuery);', array('type' => 'inline', 'scope' => 'footer', 'weight' => 5));
+  
+  $js = '(function ($) {$(".lazy").jail({placeholder : "/' . variable_get('jail_loader', '/' . drupal_get_path('module', 'jail') . '/white.gif')  . '"';
+  if($variables['jail_effect'] != "none") {
+    $js .= ', effect : "' . $variables['jail_effect'] .'"';
+  }
+  $js .= '});})(jQuery);';
+  drupal_add_js($js, array('type' => 'inline', 'scope' => 'footer', 'weight' => 5));
   return $output;
 }
 
CommentFileSizeAuthor
jail_effects.patch1.03 KBelmotri
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

danlinn’s picture

Awesome, thanks! I'll roll this into the next release.

danlinn’s picture

Status: Active » Needs review
danlinn’s picture

Status: Needs review » Fixed

I've rolled a new version. Should be available soon. Thanks for your help!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.