# # # patch "static/viewmtn.js" # from [ae8fd3bf21855360e73af1cad004484f400b49fa] # to [07b802e056bca7922f969311057df3aac66938c7] # ============================================================ --- static/viewmtn.js ae8fd3bf21855360e73af1cad004484f400b49fa +++ static/viewmtn.js 07b802e056bca7922f969311057df3aac66938c7 @@ -75,16 +75,17 @@ function mouseOverHandler(boundTo, evt) { var className = getNodeAttribute(boundTo, "class"); + if (boundTo.jsonData) { + return updatePopup(boundTo, className); + } + + // squash any requests when we're already waiting for a server reply if ((pendingFor != null) && (pendingFor == boundTo)) { return; } else { pendingFor = boundTo; } - if (boundTo.jsonData) { - return updatePopup(boundTo, className); - } - if (boundTo.id) { var uri = "/json/" + encodeURIComponent(className) + "/" + encodeURIComponent(boundTo.id); var d = loadJSONDoc(uri); @@ -96,6 +97,10 @@ function mouseOutHandler(boundTo, evt) function mouseOutHandler(boundTo, evt) { + // no need to cancel if we're just leaving ourselves + if (boundTo == pendingFor) { + return; + } if (pendingDeferred != null) { pendingDeferred.cancel(); pendingDeferred = null;