Reputation: 1381
How do I create a new Image in ClojureScript?
I want the equivalent of new Image(); in JavaScript
I have tried (new Image) (Image. )
What am I missing?
Upvotes: 5
Views: 1237
Reputation: 84331
You need to qualify Image
with the js
"magic namespace":
(js/Image.)
Upvotes: 15