This repo is a wrap of https://github.com/Polymer/CustomElements for Bower that doesn't rely on Polymers loader.
// Basic usage
<x-foo alert="foobarz"></x-foo>
<script type="text/javascript">
var XFooPrototype = Object.create(HTMLElement.prototype);
XFooPrototype.createdCallback = function() {
this.textContent = "I'm an x-foo!";
};
XFooPrototype.foo = function() {
console.log(this.getAttribute('alert'));
};
var XFoo = document.registerElement('x-foo', {
prototype: XFooPrototype
});
document.addEventListener('WebComponentsReady', function(){
document.querySelector('x-foo').foo();
});
</script>