[BUGFIX] Loading of an IRRE element with subtabs freezes and breaks browsers
authorStefan Galinski <stefan.galinski@gmail.com>
Fri, 27 Jan 2012 15:38:29 +0000 (16:38 +0100)
committerTolleiv Nietsch <info@tolleiv.de>
Thu, 9 Feb 2012 07:47:18 +0000 (08:47 +0100)
Change-Id: I4c40900c6e718c720a005b59d5875d08b8b4c341
Fixes: #33448
Releases: 4.7, 4.6
Reviewed-on: http://review.typo3.org/8728
Reviewed-by: Oliver Klee
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
typo3/js/tabmenu.js

index c477026..a5f2d0d 100644 (file)
@@ -21,8 +21,8 @@
  *
  ***************************************************************/
 
-var DTM_array = [];
-var DTM_origClass ='';
+var DTM_array = DTM_array || [],
+       DTM_origClass = DTM_origClass || '';
 
        // if tabs are used in a popup window the array might not exists
 if (!top.DTM_currentTabs) {