diff options
| -rw-r--r-- | background_scripts/settings.coffee | 3 | ||||
| -rw-r--r-- | content_scripts/link_hints.coffee | 6 | ||||
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 5 | ||||
| -rw-r--r-- | 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  -      <a class='vimiumReset' href='https://chrome.google.com/extensions/detail/dbepggeogbaibhgnhhndojpepiihcmeb'> +    HUD.upgradeNotificationElement().innerHTML = "Vimium has been updated to +      <a class='vimiumReset' +      href='https://chrome.google.com/extensions/detail/dbepggeogbaibhgnhhndojpepiihcmeb'>        #{version}</a>.<a class='vimiumReset close-button' href='#'>x</a>"      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 | 
