Catch elements without id.
authorJan Schneider <jan@horde.org>
Tue, 18 Aug 2009 07:36:13 +0000 (09:36 +0200)
committerJan Schneider <jan@horde.org>
Tue, 18 Aug 2009 09:44:00 +0000 (11:44 +0200)
imp/js/message.js

index 5dd2a0f..e7777a7 100644 (file)
@@ -140,6 +140,10 @@ var ImpMessage = {
     {
         var id = e.element().readAttribute('id');
 
+        if (!id) {
+            return;
+        }
+
         if (id.startsWith('flag')) {
             this.flagMessage(id.substring(4));
         } else if (id.startsWith('target')) {