nmbug.js: Use bind to avoid forwarding message_id through _get_tags
authorW. Trevor King <wking@tremily.us>
Sun, 21 Sep 2014 12:35:05 +0000 (05:35 -0700)
committerW. Trevor King <wking@tremily.us>
Sun, 21 Sep 2014 13:04:47 +0000 (06:04 -0700)
commit8acb67a1201a330506b4457985a3044cdccdc8b6
tree65439ec25cb2d3f7251a63c7f5e0b8e7db09f1ee
parent3eba9b8c2c3a1736549cbe6f5dfcb8fd05da62ab
nmbug.js: Use bind to avoid forwarding message_id through _get_tags

Instead of telling _get_tags that the callback will always want the
message_id (in addition to the list of that message's tags), use bind
[1] to add that information when we set the _edit_tags callback.

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
nmbug.js