Bug 1277571 - Bind the scroll function to this in breadcrumbs to pass it to event handlers; r=jdescottes
MozReview-Commit-ID: bi6ix3k3Ey
--- a/devtools/client/inspector/breadcrumbs.js
+++ b/devtools/client/inspector/breadcrumbs.js
@@ -327,16 +327,17 @@ HTMLBreadcrumbs.prototype = {
_init: function () {
this.outer = this.chromeDoc.getElementById("inspector-breadcrumbs");
this.arrowScrollBox = new ArrowScrollBox(
this.chromeWin,
this.outer);
this.container = this.arrowScrollBox.inner;
+ this.scroll = this.scroll.bind(this);
this.arrowScrollBox.on("overflow", this.scroll);
// These separators are used for CSS purposes only, and are positioned
// off screen, but displayed with -moz-element.
this.separators = this.chromeDoc.createElementNS(NS_XHTML, "div");
this.separators.className = "breadcrumb-separator-container";
this.separators.innerHTML =
"<div id='breadcrumb-separator-before'></div>" +