The problem is `download` property that gets munged in advanced
compilation.
You can use `aset` to prevent it from being munged:
(aset lnk download filename)
or alternatively provide extern file to tell Closure compiler not to munge
it:
function HTMLLinkElement() {}
On Friday, February 13, 2015 at 6:05:37 PM UTC+11, Jensontech wrote:
I need to allow the user to save content generated by Clojurescript to their
local drive.
I do it using this code -
(defn- save-file
[filename content]
(let [lnk (get-element-by-id file-export-link)
blob