Skip to content

Commit

Permalink
Merge branch 'release-0.5.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
akhodakivskiy committed Mar 3, 2014
2 parents d06b165 + 074c890 commit 1d45c84
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

0.5.7 (Mar 3 2014)

- Bug fix

0.5.6 (Feb 26 2014)

- Updated some translations
Expand Down
2 changes: 1 addition & 1 deletion extension/install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>[email protected]</em:id>
<em:homepageURL>http://www.github.com/akhodakivskiy/VimFx</em:homepageURL>
<em:version>0.5.6</em:version>
<em:version>0.5.7</em:version>
<em:type>2</em:type>
<em:bootstrap>true</em:bootstrap>
<em:optionsType>2</em:optionsType>
Expand Down
6 changes: 3 additions & 3 deletions extension/packages/mode-hints/mode-hints.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ hints = require 'mode-hints/hints'
exports.mode_hints =
onEnter: (vim, storage, callback) ->
markers = hints.injectHints(vim.window.document)
if markers.length == 0
vim.enterMode('normal')
else
if markers?.length > 0
storage.markers = markers
storage.callback = callback
else
vim.enterMode('normal')

onLeave: (vim, storage) ->
hints.removeHints(vim.window.document)
Expand Down
10 changes: 5 additions & 5 deletions extension/packages/utils.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ blurActiveElement = (window) ->
# really needed? What if a website has made more elements focusable -- shouldn't those also be
# blurred?
{ activeElement } = window.document
if isElementEditable(activeElement)
if activeElement and isElementEditable(activeElement)
activeElement.blur()

isTextInputElement = (element) ->
Expand All @@ -89,10 +89,10 @@ isElementEditable = (element) ->
isElementVisible = (element) ->
document = element.ownerDocument
window = document.defaultView
computedStyle = window.getComputedStyle(element, null)
return computedStyle.getPropertyValue('visibility') == 'visible' and \
computedStyle.getPropertyValue('display') != 'none' and \
computedStyle.getPropertyValue('opacity') != '0'
if computedStyle = window.getComputedStyle(element, null)
return computedStyle.getPropertyValue('visibility') == 'visible' and \
computedStyle.getPropertyValue('display') != 'none' and \
computedStyle.getPropertyValue('opacity') != '0'

getWindowId = (window) ->
return window
Expand Down

0 comments on commit 1d45c84

Please sign in to comment.