Skip to content

Commit

Permalink
Add missing binds
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-c committed Oct 17, 2014
1 parent 5270a57 commit aa0dd63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions midp/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ Native.create("com/sun/midp/io/j2me/socket/Protocol.read0.([BII)I", function(ctx
}).bind(this);

if (this.data.byteLength == 0) {
this.waitingData = function() {
this.waitingData = (function() {
this.waitingData = null;
copyData();
}
}).bind(this);
return;
}

Expand All @@ -129,10 +129,10 @@ Native.create("com/sun/midp/io/j2me/socket/Protocol.write0.([BII)I", function(ct
if (message.result) {
resolve(length);
} else {
this.socket.ondrain = function() {
this.socket.ondrain = (function() {
this.socket.ondrain = null;
resolve(length);
};
}).bind(this);
}
}).bind(this);

Expand Down

0 comments on commit aa0dd63

Please sign in to comment.