nteract / vdom

🎄 Virtual DOM for Python
https://github.com/nteract/vdom/blob/master/docs/mimetype-spec.md
BSD 3-Clause "New" or "Revised" License
222 stars 35 forks source link

typos in "VDOM Event Support" #105

Open allefeld opened 4 years ago

allefeld commented 4 years ago

In VDOM Event Support there are two lines with typos in the first code example; corrected:

from IPython.display import display

return button(str(count), onClick=on_click, style={'width': '100', 'height': '40'})

The second code example has typos, too, corrected:

from IPython.display import display

model = vdom.div(
    vdom.a("click this link", href-"#", onClick=inner_on_click),
    onClick=outer_on_click
)

but even after corrected it doesn't run:

AttributeError: module 'vdom' has no attribute 'eventHandler'