Bug 1277571 - Bind the scroll function to this in breadcrumbs to pass it to event handlers; r=jdescottes
authorPatrick Brosset <pbrosset@mozilla.com>
Thu, 02 Jun 2016 16:32:46 +0200
changeset 324565 a47a4d3877eb3a732d7578d77ade1142b1b941e7
parent 324564 c26aac8cf086fae326a34b4ff809dbfc054bec7e
child 324566 b30ef0b6848b4fdb3757d11959430b5bdc489099
push id9671
push userraliiev@mozilla.com
push dateMon, 06 Jun 2016 20:27:52 +0000
treeherdermozilla-aurora@cea65ca3d0bd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes
bugs1277571
milestone49.0a1
Bug 1277571 - Bind the scroll function to this in breadcrumbs to pass it to event handlers; r=jdescottes MozReview-Commit-ID: bi6ix3k3Ey
devtools/client/inspector/breadcrumbs.js
--- 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>" +