function upgrade(template) {
  template = unique(template);
  var info = templates.get(template) || createTemplate.call(this, template);
  var fragment = importNode(this.ownerDocument, info.fragment);
  var updates = Updates.create(fragment, info.paths);
  bewitched.set(this, { template: template, updates: updates });
  update$1.apply(updates, arguments);
  this.textContent = '';
  this.appendChild(fragment);
}
// to the current context, and render it after cleaning the context up
to the current context, and render it after cleaning the context up
to the current context and render it after cleaning the context up
function upgrade(template) {
  template = unique(template);
  var info = templates.get(template) || createTemplate.call(this, template);
  var fragment = importNode(this.ownerDocument, info.fragment);
  var updates = Updates.create(fragment, info.paths);
  bewitched.set(this, { template: template, updates: updates });
  update$1.apply(updates, arguments);
  this.textContent = '';
  this.appendChild(fragment);
}
function upgrade ( template ) { template = unique ( template ) ; var info = templates . get ( template ) || createTemplate . call ( this , template ) ; var fragment = importNode ( this . ownerDocument , info . fragment ) ; var updates = Updates . create ( fragment , info . paths ) ; bewitched . set ( this , { template : template , updates : updates } ) ; update$1 . apply ( updates , arguments ) ; this . textContent = '' ; this . appendChild ( fragment ) ; }
to the current context, and render it after cleaning the context up
to the current context and render it after cleaning the context up