I'm using [cljsjs/localforage "1.2.10-0"]
When I do:
(.setItem (.localforage js/window) "mynumber" (clj->js {:number (.-value number)}))
I get this error in WebIDE console:
TypeError: *TypeError: window.localforage is not a function*
If I test it in firefox browser, it says the same, whilst if I introduce in the console window.localforage.setItem()
it works :|
BONUS: each time I compile with lein cljsbuild auto I get this:
*Upstream deps.cljs found on classpath. {:foreign-libs [{
:file "cljsjs/localforage/development/localforage.inc.js",
:provides ["cljsjs.localforage"],
:file-min "cljsjs/localforage/production/localforage.min.inc.js"
}],
:externs ["cljsjs/localForage/common/localforage.ext.js"]}
This is an EXPERIMENTAL FEATURE and is not guarenteed to remain
stable in future versions.*