MDL-43243 JavaScript: Deprecate getElementsByClassName

This commit is contained in:
Andrew Nicols
2013-12-10 09:55:33 +08:00
parent e1b4553d8c
commit bc549847d9
+3
View File
@@ -1204,8 +1204,11 @@ function addonload(fn) {
* document, use `document`.
* @param {String} strTagName filter by tag names
* @param {String} name same as HTML5 spec
* @deprecated Since Moodle 2.7. This will be removed in Moodle 2.9.
*/
function getElementsByClassName(oElm, strTagName, name) {
Y.log('getElementsByClassName has been deprecated since Moodle 2.7 and will be removed in Moodle 2.9',
'warn', 'javascript-static.js');
// for backwards compatibility
if(typeof name == "object") {
var names = new Array();