From 5566338d2cd5117586de2c881cffe4bc00f61a5a Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 4 Jul 2011 22:55:51 +0200 Subject: deprecated getElementsByClass --- lib/scripts/compatibility.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/scripts/compatibility.js') diff --git a/lib/scripts/compatibility.js b/lib/scripts/compatibility.js index bd5403f0d..58efc03b9 100644 --- a/lib/scripts/compatibility.js +++ b/lib/scripts/compatibility.js @@ -23,3 +23,8 @@ function findPosY(object){ return jQuery(object).position().top; } +function getElementsByClass(searchClass,node,tag){ + DEPRECATED('Use jQuery() instead'); + if(node == null) node = document; + return jQuery(node).find(tag+'.'+searchClass).toArray(); +} -- cgit v1.2.3