Skip to content

Commit

Permalink
added focus on launch to example
Browse files Browse the repository at this point in the history
  • Loading branch information
jed committed Apr 12, 2010
1 parent 83d38a6 commit dbd0dbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,7 @@ function userAgent() {

function client() {
( function listen(){ $.getScript( "/listen", listen ) })();
$( window ).focus( function(){ $.getScript( "/focused" ) } );
$( window )
.focus( function(){ $.getScript( "/focused" ) } )
.focus();
}

0 comments on commit dbd0dbd

Please sign in to comment.