Skip to content

Commit

Permalink
Merge pull request #3 from egatrop/patch-1
Browse files Browse the repository at this point in the history
Update angular2-websocket.ts
  • Loading branch information
afrad committed Jan 26, 2016
2 parents b6a8594 + 9bfcfe8 commit 21e4d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular2-websocket.ts
Expand Up @@ -152,7 +152,7 @@ export class $WebSocket {
var currentCallback;
for (var i = 0; i < self.onMessageCallbacks.length; i++) {
currentCallback = self.onMessageCallbacks[i];
currentCallback.fn.apply(self, message);
currentCallback.fn.apply(self, [message]);
}

};
Expand Down

1 comment on commit 21e4d51

@mixalbl4-127
Copy link

Choose a reason for hiding this comment

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

And compile to .js please!

Please sign in to comment.