Banana jam

Posted on January 17, 2015

After some reworking and polishing, it’s all working very well. There’s still some work to be done on the IORef based external model before I try ajax. But I seem to have hit the same darn snag once again: I don’t seem to be able to access the internal model in an event handler.

Now, I’ve largely worked around that by using the DOM. For example, when an item is toggled, we use is ":checked" to discover its current state. When we start editing an item, we fetch the text not from the model but with jQuery calls. This could just about be made to work, but it’s at best inelegant.

So I think I need to look at banana basics again. There must be a way to access a behaviour in an event handler.