Created
June 13, 2014 11:05
-
-
Save kurogelee/dff7cf9ce41295c038e4 to your computer and use it in GitHub Desktop.
js->cljが効かない。なぜ? ref: http://qiita.com/kurogelee/items/b96d96cc8fc5a778a292
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
(or force-obj | |
(identical? x (js/Object x)) | |
(identical? (type x) js/Object) | |
(identical? (type x) js/global.Object)) |
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
(ns sample.core | |
(:require [lt.objs.editor :as editor] | |
[lt.objs.editor.pool :as pool])) | |
(def cm (editor/->cm-ed (pool/last-active))) | |
(def cursor (.getCursor cm)) | |
(js->clj cursor) |
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
(ns sample.core | |
(:require [lt.objs.editor :as editor] | |
[lt.objs.editor.pool :as pool] | |
[lt.util.cljs :as c])) | |
(def cm (editor/->cm-ed (pool/last-active))) | |
(def cursor (.getCursor cm)) | |
(c/js->clj cursor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment