1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 18:14:11 +01:00

Remove some redundant version-specific code.

This commit is contained in:
Doug Kearns
2014-02-08 00:05:35 +11:00
parent c8b430cd8f
commit 789b44209c
8 changed files with 54 additions and 115 deletions

View File

@@ -78,12 +78,8 @@ var Buffer = Module("Buffer", {
* callback is not provided.
*/
getPref: function getPref(pref, callback) {
// God damn it.
if (config.haveGecko("19.0a1"))
services.contentPrefs.getPref(this.uri, pref,
sanitizer.getContext(this.win), callback);
else
services.contentPrefs.getPref(this.uri, pref, callback);
services.contentPrefs.getPref(this.uri, pref,
sanitizer.getContext(this.win), callback);
},
/**
@@ -525,8 +521,6 @@ var Buffer = Module("Buffer", {
};
DOM(elem).mousedown(params).mouseup(params);
if (!config.haveGecko("2b"))
DOM(elem).click(params);
let sel = util.selectionController(win);
sel.getSelection(sel.SELECTION_FOCUS_REGION).collapseToStart();