mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-02 20:54:10 +01:00
prefer comparison with the undefined literal rather than using typeof and
comparing against "undefined"
This commit is contained in:
@@ -249,7 +249,7 @@ function Vimperator() //{{{1
|
||||
if (typeof(extended) === "number")
|
||||
extended_mode = extended;
|
||||
|
||||
if (typeof(silent) == "undefined" || !silent)
|
||||
if (!silent)
|
||||
showMode();
|
||||
}
|
||||
// returns true if "whichmode" is found in either the main or
|
||||
@@ -739,7 +739,7 @@ function Tabs() //{{{1
|
||||
var length = getBrowser().mTabs.length;
|
||||
var last = length - 1;
|
||||
|
||||
if (typeof(spec) === "undefined" || spec === "")
|
||||
if (spec === undefined || spec === "")
|
||||
return position;
|
||||
|
||||
if (typeof(spec) === "number")
|
||||
|
||||
Reference in New Issue
Block a user