Skip to content

Commit

Permalink
getCanvasElementById
Browse files Browse the repository at this point in the history
  • Loading branch information
paf31 committed Aug 13, 2014
1 parent e2f47cd commit 7ea2184
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Graphics/Canvas.purs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ foreign import data CanvasElement :: *

foreign import data Context2D :: *

foreign import getCanvasElementById
"function getCanvasElementById(id) {\
\ return function() {\
\ return document.getElementById(id);\
\ };\
\}" :: forall eff. String -> Eff (canvas :: Canvas | eff) CanvasElement

foreign import getContext2D
"function getContext2D(c) {\
\ return function() {\
Expand Down

0 comments on commit 7ea2184

Please sign in to comment.