malepoon/base/content/browser-places.js
// View for the history menu.
View for the history menu.
View for the history menu .
function HistoryMenu(aPopupShowingEvent) {
  this.__proto__.__proto__ = PlacesMenu.prototype;
  XPCOMUtils.defineLazyServiceGetter(this, "_ss",
                                     "@mozilla.org/browser/sessionstore;1",
                                     "nsISessionStore");
  PlacesMenu.call(this, aPopupShowingEvent,
                  "place:sort=4&maxResults=15");
}
function HistoryMenu ( aPopupShowingEvent ) { this . __proto__ . __proto__ = PlacesMenu . prototype ; XPCOMUtils . defineLazyServiceGetter ( this , "_ss" , "@mozilla.org/browser/sessionstore;1" , "nsISessionStore" ) ; PlacesMenu . call ( this , aPopupShowingEvent , "place:sort=4&maxResults=15" ) ; }
View for the history menu.
View for the history menu .
// Workaround for Bug 610187.  The sidebar does not include all the Places // views definitions, and we don't need them there. // Defining the prototype inheritance in the prototype itself would cause // browser.js to halt on "PlacesMenu is not defined" error.