From e005536edf60ae921cec2a116b166469187c9846 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Fri, 18 Mar 2011 22:10:53 +0900 Subject: [PATCH] auto detection of accesskey was broken --- modules/lib/confirmWithTab.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/lib/confirmWithTab.js b/modules/lib/confirmWithTab.js index e7c3810a..4085d898 100644 --- a/modules/lib/confirmWithTab.js +++ b/modules/lib/confirmWithTab.js @@ -1,7 +1,7 @@ /** * @fileOverview Tab Related Confirmation Library for Firefox 3.5 or later * @author SHIMODA "Piro" Hiroshi - * @version 4 + * @version 5 * Basic usage: * * @example @@ -72,7 +72,7 @@ if (typeof namespace.Deferred == 'undefined') var confirmWithTab; (function() { - const currentRevision = 4; + const currentRevision = 5; var loadedRevision = 'confirmWithTab' in namespace ? namespace.confirmWithTab.revision : @@ -115,13 +115,13 @@ var confirmWithTab; box.PRIORITY_INFO_MEDIUM ), aOptions.buttons.map(function(aLabel, aIndex) { + var accessKey; var match = aLabel.match(/\s*\(&([0-9a-z])\)/i); if (match) { accessKey = match[1]; aLabel = aLabel.replace(match[0], ''); } else { - let accessKey; let lastUniqueKey; let sanitizedLabel = []; for (let i = 0, maxi = aLabel.length; i < maxi; i++)