src/core/util/util.js
function scanChildren(element) {
        var found;
        if (element) {
          for (var i = 0, len = element.length; i < len; i++) {
            var target = element[i];
            if (!found) {
              for (var j = 0, numChild = target.childNodes.length; j < numChild; j++) {
                found = found || scanTree([target.childNodes[j]]);
              }
            }
          }
        }
        return found;
      }
function scanChildren(element) {
        var found;
        if (element) {
          for (var i = 0, len = element.length; i < len; i++) {
            var target = element[i];
            if (!found) {
              for (var j = 0, numChild = target.childNodes.length; j < numChild; j++) {
                found = found || scanTree([target.childNodes[j]]);
              }
            }
          }
        }
        return found;
      }
function scanChildren ( element ) { var found ; if ( element ) { for ( var i = 0 , len = element . length ; i < len ; i ++ ) { var target = element [ i ] ; if ( ! found ) { for ( var j = 0 , numChild = target . childNodes . length ; j < numChild ; j ++ ) { found = found || scanTree ( [ target . childNodes [ j ] ] ) ; } } } } return found ; }
Scan children of specified node
Scan children of specified node