1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 23:37:58 +01:00

declare some loop counters in followDocumentRelation and whitespace fixes

This commit is contained in:
Doug Kearns
2007-11-16 15:00:11 +00:00
parent ca7b146774
commit 51332e41a9
9 changed files with 44 additions and 30 deletions

View File

@@ -98,7 +98,7 @@ vimperator.Editor = function () //{{{
{
var rangeStart = elt.selectionStart; // caret position
var rangeEnd = elt.selectionEnd;
var tempStr1 = elt.value.substring(0,rangeStart);
var tempStr1 = elt.value.substring(0, rangeStart);
var tempStr2 = readFromClipboard();
var tempStr3 = elt.value.substring(rangeEnd);
elt.value = tempStr1 + tempStr2 + tempStr3;
@@ -383,11 +383,11 @@ vimperator.Editor = function () //{{{
// blink the textbox after returning
var timeout = 100;
textBox.style.backgroundColor = tmpBg;
setTimeout( function () {
setTimeout(function () {
textBox.style.backgroundColor = oldBg;
setTimeout( function () {
setTimeout(function () {
textBox.style.backgroundColor = tmpBg;
setTimeout( function () {
setTimeout(function () {
textBox.style.backgroundColor = oldBg;
}, timeout);
}, timeout);