Project reorganization, add editorconfig and linter

This commit is contained in:
Ludwig Schubert
2017-08-09 16:47:35 -07:00
parent 07c7527734
commit 11eda0fc49
75 changed files with 1120 additions and 17117 deletions
+26
View File
@@ -0,0 +1,26 @@
import { Template } from '../mixins/template';
import { Controller } from '../controller';
const T = Template('d-article', `
<style></style>
`, false);
export class Article extends T(HTMLElement) {
// constructor() {
// super();
// }
connectedCallback() {
for (const [functionName, callback] of Object.entries(Controller.listeners)) {
if (typeof callback === 'function') {
document.addEventListener(functionName, callback);
} else {
console.error('Controller listeners need to be functions!')
}
}
}
}