Changing the if-focused event binding to blur.

This commit is contained in:
Jon Rohan
2013-02-03 09:01:27 -08:00
parent 5b3b92870b
commit 3cf07d29f3
2 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ windowAdditions =
$(window).on 'core:close', => @close()
$(window).command 'window:close', => @close()
$(window).on 'focus', => $("body").addClass("is-focused")
$(window).on 'focusout', => $("body").removeClass("is-focused")
$(window).on 'blur', => $("body").removeClass("is-focused")
# This method is intended only to be run when starting a normal application
# Note: RootView assigns itself on window on initialization so that