From 99afbfc0018d078959e7bf36352771d9e9206338 Mon Sep 17 00:00:00 2001
From: Jez Ng
Date: Sun, 9 Sep 2012 20:40:54 -0400
Subject: More lint fixes.
---
background_scripts/settings.coffee | 3 ++-
content_scripts/link_hints.coffee | 6 +++---
content_scripts/vimium_frontend.coffee | 5 +++--
lib/dom_utils.coffee | 7 +++----
4 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/background_scripts/settings.coffee b/background_scripts/settings.coffee
index 2f62fc50..995ceb0c 100644
--- a/background_scripts/settings.coffee
+++ b/background_scripts/settings.coffee
@@ -27,7 +27,8 @@ root.Settings = Settings =
"""
div > .vimiumHintMarker {
/* linkhint boxes */
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542));
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785),
+ color-stop(100%,#FFC542));
border: 1px solid #E3BE23;
}
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index 831408e2..a47f9263 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -242,9 +242,9 @@ LinkHints =
callback() if (callback)
else
setTimeout(->
- deactivate()
- callback() if callback
- delay)
+ deactivate()
+ callback() if callback
+ delay)
alphabetHints =
hintKeystrokeQueue: []
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 11f5a27b..22070084 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -959,8 +959,9 @@ HUD =
HUD.displayElement().style.display = ""
showUpgradeNotification: (version) ->
- HUD.upgradeNotificationElement().innerHTML = "Vimium has been updated to
-
+ HUD.upgradeNotificationElement().innerHTML = "Vimium has been updated to
+
#{version}.x"
links = HUD.upgradeNotificationElement().getElementsByTagName("a")
links[0].addEventListener("click", HUD.onUpdateLinkClicked, false)
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index e7fa9c2f..30530e0d 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -87,11 +87,10 @@ DomUtils =
computedStyle = window.getComputedStyle(child, null)
# Ignore child elements which are not floated and not absolutely positioned for parent elements with
# zero width/height
- if (computedStyle.getPropertyValue('float') == 'none' && computedStyle.getPropertyValue('position') != 'absolute')
- continue
+ continue if (computedStyle.getPropertyValue('float') == 'none' &&
+ computedStyle.getPropertyValue('position') != 'absolute')
childClientRect = @getVisibleClientRect(child)
- if (childClientRect == null)
- continue
+ continue if (childClientRect == null)
return childClientRect
null
--
cgit v1.2.3