diff options
| author | mrmr1993 | 2014-12-22 12:35:13 +0000 |
|---|---|---|
| committer | mrmr1993 | 2014-12-22 12:35:13 +0000 |
| commit | c1ffbc88ed1e340a7a046e1d75499642bf220e7f (patch) | |
| tree | 022ce450a952f0a2d1bbdf2d7d6193acb5863142 | |
| parent | e79537231f35215339c04d1e01347974bd4bd810 (diff) | |
| download | vimium-c1ffbc88ed1e340a7a046e1d75499642bf220e7f.tar.bz2 | |
Prefer `||=` to `= true if`
| -rw-r--r-- | content_scripts/link_hints.coffee | 2 |
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 |
