1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 10:32:27 +01:00

Fix rehash on FF6.

This commit is contained in:
Kris Maglione
2011-09-08 16:42:06 -04:00
parent c6035ce674
commit de0ad598e5
2 changed files with 14 additions and 5 deletions

View File

@@ -770,6 +770,15 @@ var DOM = Class("DOM", {
continue;
force = Math.round(isect.width - rect.width) || Math.round(isect.height - rect.height);
let vp = parent.viewport;
if (force)
util.dump(vp,
rect.left - vp.left,
rect.right - vp.right,
rect.top - vp.top,
rect.bottom - vp.bottom,
isect.width - rect.width, isect.height - rect.height,
parent[0]);
if (force)
break;
}

View File

@@ -12,7 +12,7 @@ defineModule("main", {
require: ["config", "help", "highlight", "io", "overlay", "services", "util"]
}, this);
const BASE = "resource://dactyl-content/";
var BASE = "resource://dactyl-content/";
/**
* @class ModuleBase
@@ -56,10 +56,10 @@ var Modules = function Modules(window) {
* module constructor.
* @optional
* @param {Object} moduleInit The module initialization functions
* for the new module. Each function is called as soon as the named module
* has been initialized, but after the module itself. The constructors are
* guaranteed to be called in the same order that the dependent modules
* were initialized.
* for the new module. Each function is called as soon as the
* named module has been initialized. The constructors are
* guaranteed to be called in the same order that the dependent
* modules were initialized.
* @optional
*
* @returns {function} The constructor for the resulting module.