2 show: function (message_id) {
9 handle: function (callback) {
10 throw 'Extract the Message-ID from ' + document.URL;
18 function _check_handler(handler) {
19 var match = handler.regexp.test(document.URL);
20 console.log('nmbug: testing', handler, match);
22 console.log('nmbug: matched', handler);
23 handler.handle(nmbug.show);
25 return match; /* break after the first match */
29 var matched = handlers.some(_check_handler);
31 throw 'No handler for ' + document.URL;