wapi-doc/layout/own-scripts.js
/*
  Get a list of direct child elements by class name.
*/
Get a list of direct child elements by class name.
Get a list of direct child elements by class name .
function childrenByClass(element, name) {
  var filtered = []
  for (var i = 0; i < element.children.length; i++) {
    var child = element.children[i]
    var classNames = child.className.split(' ')
    if (classNames.indexOf(name) !== -1) {
      filtered.push(child)
    }
  }
  return filtered
}
function childrenByClass ( element , name ) { var filtered = [ ] for ( var i = 0 ; i < element . children . length ; i ++ ) { var child = element . children [ i ] var classNames = child . className . split ( ' ' ) if ( classNames . indexOf ( name ) !== - 1 ) { filtered . push ( child ) } } return filtered }
Get a list of direct child elements by class name.
Get a list of direct child elements by class name .