lib/gcli/ui/view.js
function(element, clear) {
      // Strict check on the off-chance that we later think of other options
      // and want to replace 'clear' with an 'options' parameter, but want to
      // support backwards compat.
      if (clear === true) {
        util.clearElement(element);
      }

      element.appendChild(this.toDom(element.ownerDocument));
    }
function(element, clear) {
      // Strict check on the off-chance that we later think of other options
      // and want to replace 'clear' with an 'options' parameter, but want to
      // support backwards compat.
      if (clear === true) {
        util.clearElement(element);
      }

      element.appendChild(this.toDom(element.ownerDocument));
    }
function ( element , clear ) { // Strict check on the off-chance that we later think of other options // and want to replace 'clear' with an 'options' parameter, but want to // support backwards compat. if ( clear === true ) { util . clearElement ( element ) ; } element . appendChild ( this . toDom ( element . ownerDocument ) ) ; }
Run the template against the document to which element belongs.
@param element The element to append the result to
@param clear Set clear===true to remove all children of element
Run the template against the document to which element belongs .