idmillington / undum

A client-side framework for narrative hypertext interactive fiction.
https://idmillington.github.com/undum
MIT License
336 stars 80 forks source link

doClick and localization default #12

Closed juhana closed 12 years ago

juhana commented 12 years ago

Here's the wrapper for processClick(). It's hard to explain the difference between that and doLink, so feel free to improve what I scribbled in the documentation.

Also, there was an issue where the script would halt if the HTML document didn't have the lang attribute, so I made it default to en if nothing else is specified.

idmillington commented 12 years ago

Thanks again. This is great. Fixes #11 and #12