Can anyone please help me understanding, what is going on in this piece of code:
(defn- make-edit-mode-container [widget]
(let [input-container (template/node [:input.editable-edit-mode {:type "text"}])
ghandler (goog.events.KeyHandler. input-container)]
(set! (. input-container -gEditableHandler) ghandler)
;; ...
;; ...
input-container))
As I understand, here a private function is declared, it accepts a widget parameter. The local-scope variable input-container is a node (actually it is a dommy.template node) which is a HTML <input type="text" class="editable-edit-mode"> element.
What I can't undestand is (goog.events.KeyHandler. input-container) (e.g. what is dot doing at the end of goog.events.Keyhandler).
Consequently, AFAIU (. input-container -gEditableHandler) is a member access, but then where -gEditableHandler comes from and what does the dash mean?
Thanks in advance.