Skip to content

Instantly share code, notes, and snippets.

@akmiller78
Created October 19, 2016 18:59
Show Gist options
  • Save akmiller78/b802e280667822df6f2a636e127c5368 to your computer and use it in GitHub Desktop.
Save akmiller78/b802e280667822df6f2a636e127c5368 to your computer and use it in GitHub Desktop.
How to inherit closure components in clojurescript
(defn CustomInputHandler []
(this-as this (.call InputHandler this)))
(goog/inherits CustomInputHandler InputHandler)
(set!
(.. CustomInputHandler -prototype -selectRow)
(fn [row opt-multi]
(this-as this
(if (.-activeElement_ this)
(.setTokenText this "testing 1 2 3" opt-multi)
false))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment