docs: function fixPolymerInvocation (src, elementName) {
    var match    = /Polymer\(([^,{]+)?(,\s*)?({|\))/.exec(src);
    if(!match) return src;
    var name     = match[1] || '';
    var split    = match[2] || '';
    var trailing = match[3];
  
    var nameIsString = /^['"]/.test(name);
    if (!split) {
      // assume "name" is actually the prototype if it is not a string literal
      if (!name || (name && !nameIsString)) {
        trailing = name + trailing;
        name = '\'' + elementName + '\'';
      }
      if (trailing !== ')') {
        split = ',';
      }
    }
    return src.replace(match[0], 'Polymer(' + name + split + trailing);
  }