Turns out that the problem was not with the fire-base element, but with 
more functions config in my index.html. 
Somehow I had gotten the notion, that I should wrap my application wide 
functions in a Polymer() contstructor as well. This in turn created an 
"unnamed application custom element", and so I got that mysterious error.

On Thursday, December 4, 2014 1:13:14 PM UTC+1, [email protected] wrote:
>
> Getting a naming error when using custom element
>
> <link rel="import" href=
> "../../bower_components/firebase-element/firebase-element.html">
> <script src="firebase-as-array.js"></script>
> <polymer-element name="firebase-list" attributes="list" extends=
> "firebase-element">
>   <script>
>     (function () {
>       'use strict';
>
>
>       Polymer('firebase-list', {
>         refChanged: function() {
>           this.list = Firebase.getAsArray(this.ref);
>         }
>       });
>
>
>     })();
>   </script>
> </polymer-element>
>
> Using it
>
> <body unresolved>
>   <h1>Hello World</h1>
>   <template is="auto-binding">
>     <firebase-element location="https://fire-people.firebaseio.com/"; ref=
> "{{ref}}"/>
>     <firebase-list id="people" ref="{{ref}}" list="{{list}}"
> ></firebase-list>
>
>
>
> Why!?
> Caused by this function in Polymer...
>
>   // imperative implementation: Polymer()
>
>
>   // specify an 'own' prototype for tag `name`
>   function element(name, prototype) {
>     if (typeof name !== 'string') {
>       var script = prototype || document._currentScript;
>       prototype = name;
>       name = script && script.parentNode && script.parentNode.getAttribute 
> ?
>           script.parentNode.getAttribute('name') : '';
>       if (!name) {
>         throw 'Element name could not be inferred.';
>       }
>     }
>
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/eeea6e7d-2014-494e-abc5-65be045daa2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to