Skip to content

Commit

Permalink
Added Image::complete
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 11, 2010
1 parent d11f250 commit 9331041
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Image.cc
Expand Up @@ -129,6 +129,7 @@ Image::SetOnerror(Local<String>, Local<Value> val, const AccessorInfo &info) {
*/

Image::Image() {
complete = false;
filename = NULL;
_surface = NULL;
}
Expand Down Expand Up @@ -181,6 +182,7 @@ Image::loaded() {
if (try_catch.HasCaught()) {
error(try_catch.Exception());
}
complete = true;
}

Unref();
Expand Down
1 change: 1 addition & 0 deletions src/Image.h
Expand Up @@ -14,6 +14,7 @@ using namespace v8;

class Image: public node::ObjectWrap {
public:
bool complete;
char *filename;
Persistent<Function> onload;
Persistent<Function> onerror;
Expand Down

0 comments on commit 9331041

Please sign in to comment.