mirror of
https://github.com/moodle/moodle.git
synced 2025-07-13 18:36:34 +02:00
MDL-43241 JavaScript: Deprecate findChildNodes
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user