Fix #55 - Show annotation assistant bar after blur

Change-Id: I74c073a29ae61f393a8f097b92f1b7a5490b658e
diff --git a/dev/js/spec/hintSpec.js b/dev/js/spec/hintSpec.js
index fe96f79..426bb96 100644
--- a/dev/js/spec/hintSpec.js
+++ b/dev/js/spec/hintSpec.js
@@ -343,6 +343,21 @@
       hint.show(true);
       expect(hint.active()).toBeFalsy();
     });
+
+
+    it('should show the assistant bar on blur', function () {
+      var hint = hintClass.create({
+        inputField : input
+      });
+      // Fine
+      hint.inputField().insert('der Baum corenlp/');
+      hint.show(true);
+      expect(hint.active()).toBeTruthy();
+
+      // Blur
+      hint.active().hideWithoutDestruction();
+      expect(hint.active()).toBeFalsy();
+    });
     
     xit('should remove all menus on escape');
   });
diff --git a/dev/js/src/hint/menu.js b/dev/js/src/hint/menu.js
index c5c7cc7..a7bdf57 100644
--- a/dev/js/src/hint/menu.js
+++ b/dev/js/src/hint/menu.js
@@ -55,6 +55,7 @@
       this.element().classList.remove("visible");
       if (this._hint) {
         this._hint.inputField().element().focus();
+        this.onHide();
       };
     }
   };