src/template.js
function(doc) {
    if (!doc) {
      doc = document;
    }
    if (doc === document && this.pool.length) {
      return this.pool.pop();
    }

    return View.makeInstanceOf(doc.importNode(this, true), this);
  }
function(doc) {
    if (!doc) {
      doc = document;
    }
    if (doc === document && this.pool.length) {
      return this.pool.pop();
    }

    return View.makeInstanceOf(doc.importNode(this, true), this);
  }
function ( doc ) { if ( ! doc ) { doc = document ; } if ( doc === document && this . pool . length ) { return this . pool . pop ( ) ; } return View . makeInstanceOf ( doc . importNode ( this , true ) , this ) ; }
Creates a new view cloned from this template.
Creates a new view cloned from this template .