Skip to content

add withImage #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2015
Merged

add withImage #26

merged 1 commit into from
Nov 2, 2015

Conversation

izgzhen
Copy link
Contributor

@izgzhen izgzhen commented Nov 2, 2015

This function is a wrapper over event listener on loading a image file.

@@ -132,6 +133,8 @@ foreign import data CanvasGradient :: *

foreign import canvasElementToImageSource :: CanvasElement -> CanvasImageSource

foreign import withImage :: forall eff a. String -> (CanvasImageSource -> Eff eff Unit) -> Eff eff Unit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a comment to this?

@izgzhen
Copy link
Contributor Author

izgzhen commented Nov 2, 2015

@paf31 the comment is added

paf31 added a commit that referenced this pull request Nov 2, 2015
@paf31 paf31 merged commit 6c84d8f into purescript-web:master Nov 2, 2015
@paf31
Copy link
Contributor

paf31 commented Nov 2, 2015

👍 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants