Skip to content

Commit

Permalink
Fix conflict with some findbar-tweaking addons.
Browse files Browse the repository at this point in the history
- Use `Function.call` to invoke Noise overwritten function, prevent
  errors caused by messed `this` operator.
- Fix #1 (#1), thanks HiReNodua.
  • Loading branch information
bootleq committed Dec 3, 2011
1 parent 3d3e4ee commit 2553881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/noise/content/noise/noise.js
Expand Up @@ -96,7 +96,7 @@ Noise = {
var obsSvc = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
obsSvc.notifyObservers(null, "noise-TypeAheadFind.FIND_WRAPPED", aFindPrevious);
}
return gFindBar._updateStatusUIWithoutNoise(res, aFindPrevious);
return gFindBar._updateStatusUIWithoutNoise.call(gFindBar, res, aFindPrevious);
};
gFindBar._updateStatusUI = gFindBar._updateStatusUIWithNoise;
}
Expand Down

0 comments on commit 2553881

Please sign in to comment.