Don't try to call js, if not passed back.
authorJan Schneider <jan@horde.org>
Mon, 29 Nov 2010 15:01:00 +0000 (16:01 +0100)
committerJan Schneider <jan@horde.org>
Mon, 29 Nov 2010 15:01:00 +0000 (16:01 +0100)
imp/js/mobile.js

index 4a101ea..b45e0c4 100644 (file)
@@ -136,9 +136,11 @@ var ImpMobile = {
                     $('#imp-message-date').text(header.value);
                 }
             });
-            $.each(data.js, function(k, js) {
-                $.globalEval(js);
-            });
+            if (data.js) {
+                $.each(data.js, function(k, js) {
+                    $.globalEval(js);
+                });
+            }
         }
     },