// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`event handling Invalid handler throws an error 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let hdlr1 = [ctx['dosomething'], ctx]; return block1([hdlr1]); } }" `; exports[`event handling handler is not called if component is destroyed 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let hdlr1 = [ctx['click'], ctx]; return block1([hdlr1]); } }" `; exports[`event handling handler receive the event as argument 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const comp1 = app.createComponent(\`Child\`, true, false, false, []); let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let hdlr1 = [ctx['inc'], ctx]; const b2 = comp1({}, key + \`__1\`, node, this, null); let txt1 = ctx['state'].value; return block1([hdlr1, txt1], [b2]); } }" `; exports[`event handling handler receive the event as argument 2`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
simple vnode
\`); return function template(ctx, node, key = \\"\\") { return block1(); } }" `; exports[`event handling handler works when app is mounted in an iframe 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`click me\`); return function template(ctx, node, key = \\"\\") { let hdlr1 = [ctx['inc'], ctx]; return block1([hdlr1]); } }" `; exports[`event handling input blur event is not called if component is destroyed 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const comp1 = app.createComponent(\`Child\`, true, false, false, []); let block1 = createBlock(\`