mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 19:37:59 +01:00
remove unnecessary parentheses from typeof args
This commit is contained in:
@@ -554,7 +554,7 @@ vimperator.Completion = function () // {{{
|
|||||||
// items must be an array of strings
|
// items must be an array of strings
|
||||||
match: function (items, filter, case_sensitive)
|
match: function (items, filter, case_sensitive)
|
||||||
{
|
{
|
||||||
if (typeof(filter) != "string" || !items)
|
if (typeof filter != "string" || !items)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var items_str = items.join(" ");
|
var items_str = items.join(" ");
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ vimperator.util = {
|
|||||||
// any line breaks are displayed as \n
|
// any line breaks are displayed as \n
|
||||||
colorize: function (arg, process_strings)
|
colorize: function (arg, process_strings)
|
||||||
{
|
{
|
||||||
var type = typeof(arg);
|
var type = typeof arg;
|
||||||
|
|
||||||
// some objects like window.JSON or getBrowsers()._browsers need the try/catch
|
// some objects like window.JSON or getBrowsers()._browsers need the try/catch
|
||||||
try
|
try
|
||||||
|
|||||||
@@ -418,7 +418,7 @@ const vimperator = (function () //{{{
|
|||||||
if (!args)
|
if (!args)
|
||||||
args = [];
|
args = [];
|
||||||
|
|
||||||
if (typeof(blocking) != "boolean")
|
if (typeof blocking != "boolean")
|
||||||
blocking = false;
|
blocking = false;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user