carinmeier
carinmeier

Reputation: 1381

How to create new Image in ClojureScript

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

Answers (1)

Michał Marczyk
Michał Marczyk

Reputation: 84331

You need to qualify Image with the js "magic namespace":

(js/Image.)

Upvotes: 15

Related Questions