Created
October 19, 2016 18:59
-
-
Save akmiller78/b802e280667822df6f2a636e127c5368 to your computer and use it in GitHub Desktop.
How to inherit closure components in clojurescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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