Merge branch 'MDL-43241-master' of git://github.com/andrewnicols/moodle

This commit is contained in:
Sam Hemelryk
2013-12-18 16:26:35 +13:00
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -1002,8 +1002,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;