WardCunningham/Smallest-Federated-Wiki — comment on commit 27da4480e4765c24fd0e68ec97e1c7ffa0de053b
File: client/client.coffee line 206
By WardCunningham:

* double-click on caption opens textEditor, good so far.
* double-click on image thumbnail opens full-size image (`this`) in dialog box, good but, it works for the wrong reason.

Passing `this` to dialog exposes the dom element to unwanted repositioning. But, by coincidence, the double-click also brings up the caption textEditor which rebuilds the whole story item when finished. In testing, this accidental repair was hidden behind the pop-up window. How convenient.

I've made several attempts to do it right but none of them worked as expected. Answering `false` in the right place does prevent the textEditor from opening But I can't seem to keep the dialog box from messing up the dom for the story item, even when I duplicate the dom construction from the bind: above rather than using `this`. The original dom is still corrupted.

Any suggestions? I'm stumped.