Permalink
Browse files

[enhance] Canvas: making it possible to create on server-side.

  • Loading branch information...
1 parent 9c715ae commit 69d5afd4dd7bff1c4754e1bf22f0d1abee4ab528 @akoprow akoprow committed Mar 1, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 stdlib/web/canvas/canvas.opa
@@ -109,6 +109,7 @@ Canvas = {{
* {2 Canvas}
**/
+ @both_implem
create_with(id : string, width : Css.size, height : Css.size,
error_msg : xhtml) : xhtml =
get_size(x:Css.size):string = match x
@@ -128,6 +129,7 @@ Canvas = {{
{error_msg}
</canvas>
+ @both_implem
create(id : string, width: Css.size, height : Css.size) : xhtml =
err_msg =
<p>

0 comments on commit 69d5afd

Please sign in to comment.