Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit 33980b3

Browse files
committed
avoid closure var when it can be avoided
1 parent 79ed661 commit 33980b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ function gotoExtensionURL(url) {
234234
// rebuild their matrix).
235235

236236
HTTPSB.urlStatsChanged = function(pageUrl) {
237-
var httpsb = this;
238237
var urlStatsChangedCallback = function(pageUrl) {
239238
// rhill 2013-11-17: No point in sending this message if the popup menu
240239
// does not exist. I suspect this could be related to
241240
// https://github.com/gorhill/httpswitchboard/issues/58
241+
var httpsb = HTTPSB;
242242
if ( httpsb.port ) {
243243
httpsb.port.postMessage({
244244
what: 'urlStatsChanged',

0 commit comments

Comments
 (0)