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/3b750ebf-727d-46f6-8e43-5a4ee9887c2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.