rem: self.rebuildView(); 
add: self._rebuildVisibleTypes(); self._sortVisibleTypes(); self._rebuildView(); 
context:   init: function() {    // Initialize shortcuts to some commonly accessed elements & values.    this._brandShortName =      document.getElementById("bundleBrand").getString("brandShortName");    this._prefsBundle = document.getElementById("bundlePreferences");    this._list = document.getElementById("handlersView");    this._filter = document.getElementById("filter");    // Observe preferences that influence what we display so we can rebuild    // the view when they change.    this._prefSvc.addObserver(PREF_SHOW_PLUGINS_IN_LIST, this, false);    this._prefSvc.addObserver(PREF_HIDE_PLUGINS_WITHOUT_EXTENSIONS, this, false);    this._prefSvc.addObserver(PREF_FEED_SELECTED_APP, this, false);    this._prefSvc.addObserver(PREF_FEED_SELECTED_WEB, this, false);    this._prefSvc.addObserver(PREF_FEED_SELECTED_ACTION, this, false);    this._prefSvc.addObserver(PREF_FEED_SELECTED_READER, this, false);    // Listen for window unload so we can remove our preference observers.    window.addEventListener("unload", this, false);    // Figure out how we should be sorting the list.  We persist sort settings    // across sessions, so we can't assume the default sort column and direction.    // XXX should we be using the XUL sort service instead?    if (document.getElementById("typeColumn").hasAttribute("sortDirection"))      this._sortColumn = document.getElementById("typeColumn");    else if (document.getElementById("actionColumn").hasAttribute("sortDirection"))      this._sortColumn = document.getElementById("actionColumn");    // Load the data and build the list of handlers.    // By doing this in a timeout, we let the preferences dialog resize itself    // to an appropriate size before we add a bunch of items to the list.    // Otherwise, if there are many items, and the Applications prefpane    // is the one that gets displayed when the user first opens the dialog,    // the dialog might stretch too much in an attempt to fit them all in.    // XXX Shouldn't we perhaps just set a max-height on the richlistbox?    var _delayedPaneLoad = function(self) {      self._loadData();      self.rebuildView();    }    setTimeout(_delayedPaneLoad, 0, this);  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/dce9dc26933b94cc0e2fe656885a13d1d1e51ab1/applications.js/clean/browser/components/preferences/applications.js