MDL-43241 JavaScript: Deprecate findChildNodes

This commit is contained in:
Andrew Nicols
2013-12-06 16:51:46 +08:00
parent 2f4e0db7c3
commit a4582a51a4
2 changed files with 11 additions and 0 deletions

View File

@ -1101,8 +1101,14 @@ function findParentNode(el, elName, elClass, elId) {
specified tag name, class, and id. All conditions must be met,
but any can be ommitted.
Doesn't examine children of matches.
@deprecated since Moodle 2.7 - please do not use this function any more.
@todo MDL-43242 This will be deleted in Moodle 2.9.
@see Y.all
*/
function findChildNodes(start, tagName, elementClass, elementID, elementName) {
Y.log("findChildNodes() is deprecated. Please use Y.all instead.",
"warn", "javascript-static.js");
var children = new Array();
for (var i = 0; i < start.childNodes.length; i++) {
var classfound = false;