diff -r a10e7b6fdb08 -r 643614f78c44 src/js/widgets/createAnnotationWidget.js --- a/src/js/widgets/createAnnotationWidget.js Mon Jan 02 15:24:33 2012 +0100 +++ b/src/js/widgets/createAnnotationWidget.js Mon Jan 02 15:27:32 2012 +0100 @@ -118,6 +118,9 @@ if (contents === "") { textfield.after(IriSP.templToHTML(IriSP.createAnnotation_errorMessage_template)); textfield.css("background-color", "#d93c71"); + + // use namespaced events to be able to unbind them quickly and without unbinding + // the other event handlers. textfield.bind("propertychange.tmp keyup.tmp input.tmp paste.tmp", IriSP.wrap(this, function() { var contents = textfield.val(); console.log(contents);