views/mdc/assets/js/components/grid.js in voom-presenters-0.2.0 vs views/mdc/assets/js/components/grid.js in voom-presenters-2.0.0

- old
+ new

@@ -1,20 +1,21 @@ import {VBaseContainer} from "./base-container"; import {hookupComponents} from "./base-component"; +import {eventHandlerMixin} from './mixins/event-handler'; -export function initGrid() { - console.log('\tGrid'); - hookupComponents('.v-grid', VGrid, null); - hookupComponents('.v-column', VColumn, null); +export function initGrid(e) { + console.debug('\tGrid'); + hookupComponents(e, '.v-grid', VGrid, null); + hookupComponents(e, '.v-column', VColumn, null); } -export class VGrid extends VBaseContainer { +export class VGrid extends eventHandlerMixin(VBaseContainer) { constructor(element, mdcComponent) { super(element, mdcComponent); } } -export class VColumn extends VBaseContainer { +export class VColumn extends eventHandlerMixin(VBaseContainer) { constructor(element, mdcComponent) { super(element, mdcComponent); } }