From bd6d984f1ebbd5da31b431960e408efd150825b7 Mon Sep 17 00:00:00 2001
From: Michael Hamann <michael@content-space.de>
Date: Tue, 19 Jul 2011 16:49:11 +0200
Subject: [PATCH] Make getElementsByClass() work without given tag

This fixes the hiding of the highlighting of the current section when
the mouse leaves the edit section button.
---
 lib/scripts/compatibility.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/scripts/compatibility.js b/lib/scripts/compatibility.js
index 27347972a..13b088582 100644
--- a/lib/scripts/compatibility.js
+++ b/lib/scripts/compatibility.js
@@ -99,6 +99,7 @@ function findPosY(object){
 function getElementsByClass(searchClass,node,tag){
     DEPRECATED('Use jQuery() instead');
     if(node == null) node = document;
+    if(typeof tag === 'undefined') tag = '';
     return jQuery(node).find(tag+'.'+searchClass).toArray();
 }
 
-- 
GitLab