Skip to content

Instantly share code, notes, and snippets.

@kurogelee
Created June 13, 2014 11:05
Show Gist options
  • Save kurogelee/dff7cf9ce41295c038e4 to your computer and use it in GitHub Desktop.
Save kurogelee/dff7cf9ce41295c038e4 to your computer and use it in GitHub Desktop.
js->cljが効かない。なぜ? ref: http://qiita.com/kurogelee/items/b96d96cc8fc5a778a292
(or force-obj
(identical? x (js/Object x))
(identical? (type x) js/Object)
(identical? (type x) js/global.Object))
(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)
(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