jquery on method not working with window or document
===

Pretty simple code:

html:

    <div id="wrap" style="background-color:gray; height:2000px;">
    
    </div>


js:


    <script type="text/javascript">
    
        $(document).ready(function(){
        	
        
        
        $(document).on('mouseup', function(e) {
        	 console.log(" mouse up \n");
    
        		
            })  
        	
        });	
        </script>



I replaced `$(document)`  with `$(window)` but with no effect.

Browser: FF 13.0

How to make it work ?