diff options
author | Michael Hamann <michael@content-space.de> | 2011-07-19 16:49:11 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2011-07-19 16:49:11 +0200 |
commit | bd6d984f1ebbd5da31b431960e408efd150825b7 (patch) | |
tree | 7d4c784674b5c9bc212f0d58782a48d5cb5212a7 /lib/scripts/compatibility.js | |
parent | 1e542e417725bb148253929fac9146832d978e45 (diff) | |
download | rpg-bd6d984f1ebbd5da31b431960e408efd150825b7.tar.gz rpg-bd6d984f1ebbd5da31b431960e408efd150825b7.tar.bz2 |
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.
Diffstat (limited to 'lib/scripts/compatibility.js')
-rw-r--r-- | lib/scripts/compatibility.js | 1 |
1 files changed, 1 insertions, 0 deletions
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(); } |