  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);  },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/1171d45a4e94e20eb007a51592d731dc434c5f90/applications.js/clean/browser/components/preferences/applications.js