1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 02:57:59 +01:00

declare some accidentally global vars

This commit is contained in:
Doug Kearns
2007-11-09 05:30:33 +00:00
parent 2b60f1a26d
commit 9fa91be129
4 changed files with 10 additions and 7 deletions

View File

@@ -496,15 +496,15 @@ vimperator.Hints = function() //{{{
x = Number(coords[0]);
y = Number(coords[1]);
}
doc = window.content.document;
view = window.document.defaultView;
var doc = window.content.document;
var view = window.document.defaultView;
var evt = doc.createEvent('MouseEvents');
evt.initMouseEvent('mousedown', true, true, view, 1, x+1, y+1, 0, 0, /*ctrl*/ new_tab, /*event.altKey*/0, /*event.shiftKey*/ new_window, /*event.metaKey*/ new_tab, 0, null);
evt.initMouseEvent('mousedown', true, true, view, 1, x + 1, y + 1, 0, 0, /*ctrl*/ new_tab, /*event.altKey*/0, /*event.shiftKey*/ new_window, /*event.metaKey*/ new_tab, 0, null);
elem.dispatchEvent(evt);
var evt = doc.createEvent('MouseEvents');
evt.initMouseEvent('click', true, true, view, 1, x+1, y+1, 0, 0, /*ctrl*/ new_tab, /*event.altKey*/0, /*event.shiftKey*/ new_window, /*event.metaKey*/ new_tab, 0, null);
evt.initMouseEvent('click', true, true, view, 1, x + 1, y + 1, 0, 0, /*ctrl*/ new_tab, /*event.altKey*/0, /*event.shiftKey*/ new_window, /*event.metaKey*/ new_tab, 0, null);
elem.dispatchEvent(evt);
// for 'pure' open calls without a new tab or window it doesn't

View File

@@ -135,6 +135,8 @@ vimperator.Options = function() //{{{
function storePreference(name, value, vimperator_branch)
{
var branch;
if (vimperator_branch)
branch = vimperator_prefs;
else

View File

@@ -1164,12 +1164,12 @@ vimperator.StatusLine = function() //{{{
{
progress_str = "[";
var done = Math.floor(progress * 20);
for (i=0; i < done; i++)
for (var i = 0; i < done; i++)
progress_str += "=";
progress_str += ">";
for (i=19; i > done; i--)
for (var i = 19; i > done; i--)
progress_str += " ";
progress_str += "]";

View File

@@ -328,7 +328,8 @@ const vimperator = (function() //{{{
if (!string)
return [null, null, null];
if (match = string.match(/^([bwtglsv]):(\w+)/)) // Variable
var match = string.match(/^([bwtglsv]):(\w+)/);
if (match) // Variable
{
// Other variables should be implemented
if (match[1] == "g")