Skip to content

Instantly share code, notes, and snippets.

View dglazkov's full-sized avatar

Dimitri Glazkov dglazkov

View GitHub Profile
<polymer-test name="my-widget-tests">
<template>
<my-widget object="{{ object }}"></my-widget>
</template>
<script>
PolymerTest("my-widget-tests", {
setup: function(data) {
// Setup data binding for each test.
data.object = {someValue: 2};
*** You have joined channel #webcomponents [12:03]
*** Users on #webcomponents: jlongster jkomoros_ ericbidelman Guest76083
joshbavari geekles pickachu cyee GeekShadow Ablu brainproxy qmx
kcherkashin__ eddh dfreedm higgins dglazkov mmalecki Domenic_ leptonix
addyo mathiasbynens sindresorhus thiagopnts Tudmotu1 bterlson theefer
kentaromiura
*** #webcomponents modes: +cnt
*** #webcomponents was created on 2012-06-29 09:34:49
<dglazkov> yay jlongster!!!
<jlongster> haha hi!
@sjmiles
sjmiles / gist:9282062
Last active August 29, 2015 13:56
One History of `document.registerElement`

As I understand it, the original Custom Elements concept had a crystalline form: attach a class to a tag-name.

Using the yet-to-be ES6 syntax, it would look something like this:

  class MyElement extends HTMLElement {
    constructor() {
    }
    doStuff() {
 }