This file contains hidden or 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
| ############################## | |
| # _ | |
| # | |_ _ __ ___ _ ___ __ | |
| # | __| '_ ` _ \| | | \ \/ / | |
| # | |_| | | | | | |_| |> < | |
| # \__|_| |_| |_|\__,_/_/\_\ | |
| # | |
| ############################# | |
| # | |
| # COPY AND PASTE |
This file contains hidden or 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
| ;; Time between polling requests in milliseconds | |
| (def TIMEOUT 1000) | |
| (defn polling-request | |
| [handler timeout] | |
| ;; Will call the handler every timeout interval | |
| (js/setInterval handler timeout)) | |
This file contains hidden or 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- attach | |
| "Takes a function to clone and a map of CSF related values | |
| including: | |
| - :args | |
| - :arg-types | |
| - :parameters | |
| These are then properly named and assigned to the template prototype |
OlderNewer