Skip to content

Commit

Permalink
Merge pull request #257 from stanley-cheung/fix-bug
Browse files Browse the repository at this point in the history
Fix bug with button in example
  • Loading branch information
stanley-cheung committed Aug 21, 2018
2 parents 9b79694 + 3b5f432 commit 749f4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/grpc/gateway/examples/echo/echoapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ echoapp.EchoApp.prototype.load = function() {
var self = this;
$(document).ready(function() {
// event handlers
$("#send").click(self.send);
$("#send").click(self.send.bind(self));
$("#msg").keyup(function (e) {
if (e.keyCode == 13) self.send(); // enter key
return false;
Expand Down

0 comments on commit 749f4e0

Please sign in to comment.