Permalink
Browse files

Fixed #50 - Added Image.complete

  • Loading branch information...
1 parent c1f582d commit ea048fc80822b1040d8798e533ac08472ce32bdc @phoboslab committed Nov 3, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Classes/Ejecta/EJCanvas/EJBindingImage.m
@@ -86,6 +86,10 @@ - (void)dealloc {
return JSValueMakeNumber( ctx, texture ? texture.height : 0 );
}
+EJ_BIND_GET(complete, ctx ) {
+ return JSValueMakeBoolean(ctx, (texture && texture.textureId) );
+}
+
EJ_BIND_EVENT(load);
EJ_BIND_EVENT(error);

0 comments on commit ea048fc

Please sign in to comment.