1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 21:52:27 +01:00

fix v.hints.currentState and hintedElements properties being called as

functions
This commit is contained in:
Doug Kearns
2007-11-24 13:37:02 +00:00
parent 591b606b5c
commit 035ff4b12e
3 changed files with 7 additions and 7 deletions

View File

@@ -541,7 +541,7 @@ vimperator.Events = function () //{{{
var map = vimperator.mappings.get(vimperator.modes.HINTS, key); var map = vimperator.mappings.get(vimperator.modes.HINTS, key);
if (map) if (map)
{ {
if (map.alwaysActive || vimperator.hints.currentState() == 1) if (map.alwaysActive || vimperator.hints.currentState == 1)
{ {
map.execute(null, vimperator.input.count); map.execute(null, vimperator.input.count);
if (map.cancelMode) // stop processing this event if (map.cancelMode) // stop processing this event
@@ -562,7 +562,7 @@ vimperator.Events = function () //{{{
} }
// no mapping found, beep() // no mapping found, beep()
if (vimperator.hints.currentState() == 1) if (vimperator.hints.currentState == 1)
{ {
vimperator.beep(); vimperator.beep();
vimperator.hints.disableHahMode(); vimperator.hints.disableHahMode();

View File

@@ -453,7 +453,7 @@ vimperator.Hints = function () //{{{
get hintedElements() { return hintedElems; }, get hintedElements() { return hintedElems; },
get currentState() { return state; }, get currentState() { return state; },
get setCurrentState(s) { state = s; }, set currentState(s) { state = s; },
loadCoord: function (winId, i) loadCoord: function (winId, i)
{ {
@@ -609,7 +609,7 @@ vimperator.Hints = function () //{{{
yankUrlHints: function () yankUrlHints: function ()
{ {
var loc = ""; var loc = "";
var elems = this.hintedElements(); var elems = this.hintedElements;
var tmp = ""; var tmp = "";
for (var i = 0; i < elems.length; i++) for (var i = 0; i < elems.length; i++)
{ {
@@ -632,7 +632,7 @@ vimperator.Hints = function () //{{{
yankTextHints: function () yankTextHints: function ()
{ {
var loc = ""; var loc = "";
var elems = this.hintedElements(); var elems = this.hintedElements;
var tmp = ""; var tmp = "";
for (var i = 0; i < elems.length; i++) for (var i = 0; i < elems.length; i++)
{ {
@@ -654,7 +654,7 @@ vimperator.Hints = function () //{{{
saveHints: function (skipPrompt) saveHints: function (skipPrompt)
{ {
var elems = this.hintedElements(); var elems = this.hintedElements;
for (var i = 0; i < elems.length; i++) for (var i = 0; i < elems.length; i++)
{ {

View File

@@ -1079,7 +1079,7 @@ vimperator.Mappings = function () //{{{
} }
)); ));
addDefaultMap(new vimperator.Map(vimperator.modes.HINTS, [","], addDefaultMap(new vimperator.Map(vimperator.modes.HINTS, [","],
function () { vimperator.input.buffer += ","; vimperator.hints.setCurrentState(0); }, function () { vimperator.input.buffer += ","; vimperator.hints.currentState = 0; },
{ {
cancelMode: false, cancelMode: false,
alwaysActive: true alwaysActive: true