aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authormrmr19932014-12-22 12:35:13 +0000
committermrmr19932014-12-22 12:35:13 +0000
commitc1ffbc88ed1e340a7a046e1d75499642bf220e7f (patch)
tree022ce450a952f0a2d1bbdf2d7d6193acb5863142 /content_scripts
parente79537231f35215339c04d1e01347974bd4bd810 (diff)
downloadvimium-c1ffbc88ed1e340a7a046e1d75499642bf220e7f.tar.bz2
Prefer `||=` to `= true if`
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/link_hints.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index c4bf3f96..df442ea6 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -169,7 +169,7 @@ LinkHints =
jsactionRules = element.getAttribute("jsaction").split(";")
for jsactionRule in jsactionRules
ruleSplit = jsactionRule.split ":"
- isClickable = true if ruleSplit[0] == "click" or (ruleSplit.length == 1 and ruleSplit[0] != "none")
+ isClickable ||= ruleSplit[0] == "click" or (ruleSplit.length == 1 and ruleSplit[0] != "none")
# Check for tagNames which are natively clickable.
switch tagName