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

use RegExp#test in preference to String#match

This commit is contained in:
Doug Kearns
2007-11-22 11:46:49 +00:00
parent d5c5869d56
commit 708fafe4a6
7 changed files with 39 additions and 41 deletions

View File

@@ -298,7 +298,7 @@ vimperator.Options = function () //{{{
// work around firefox popup blocker
var popupAllowedEvents = loadPreference("dom.popup_allowed_events", "change click dblclick mouseup reset submit");
if (!popupAllowedEvents.match("keypress"))
if (!/keypress/.test(popupAllowedEvents))
storePreference("dom.popup_allowed_events", popupAllowedEvents + " keypress");
// TODO: shouldn't we be resetting these in destroy() as well?