function registerGuestViewElement(viewType) {
  var proto = $Object.create(HTMLElement.prototype);

  proto.createdCallback = function() {
    window.console.error(
        $String.replace(ERROR_MESSAGE, /%1/g, $String.toLowerCase(viewType)));
  };

  window[viewType] = DocumentNatives.RegisterElement(
      $String.toLowerCase(viewType), {prototype: proto});

  // Delete the callbacks so developers cannot call them and produce unexpected
  // behavior.
  delete proto.createdCallback;
  delete proto.attachedCallback;
  delete proto.detachedCallback;
  delete proto.attributeChangedCallback;
}
// Registers a GuestView custom element.
Registers a GuestView custom element.
Registers a GuestView custom element .
function registerGuestViewElement(viewType) {
  var proto = $Object.create(HTMLElement.prototype);
  proto.createdCallback = function() {
    window.console.error(
        $String.replace(ERROR_MESSAGE, /%1/g, $String.toLowerCase(viewType)));
  };
  window[viewType] = DocumentNatives.RegisterElement(
      $String.toLowerCase(viewType), {prototype: proto});
  delete proto.createdCallback;
  delete proto.attachedCallback;
  delete proto.detachedCallback;
  delete proto.attributeChangedCallback;
}
function registerGuestViewElement ( viewType ) { var proto = $Object . create ( HTMLElement . prototype ) ; proto . createdCallback = function ( ) { window . console . error ( $String . replace ( ERROR_MESSAGE , / %1 / g , $String . toLowerCase ( viewType ) ) ) ; } ; window [ viewType ] = DocumentNatives . RegisterElement ( $String . toLowerCase ( viewType ) , { prototype : proto } ) ; delete proto . createdCallback ; delete proto . attachedCallback ; delete proto . detachedCallback ; delete proto . attributeChangedCallback ; }
Registers a GuestView custom element.
Registers a GuestView custom element .
// Delete the callbacks so developers cannot call them and produce unexpected // behavior.