Skip to main content

Bug Tracker

Side navigation

Ticket #7159: double_unbind_bug_test.html


File double_unbind_bug_test.html, 0.5 KB (added by alex3683, October 12, 2010 06:40AM UTC)

A test case for #7159

<html>
<head>
<style type="text/css">

   #output {
      width: 400px;
      /*height: 200px;*/
      height: 3000px;
   }

</style>
</head>
<body>

<textarea id="output" ></textarea>

<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3rc1.js"></script>
<script type="text/javascript">

var eventListener = function() {
   $( window ).unbind( "scroll", eventListener );
   $( window ).unbind( "scroll", eventListener );
};

$( function() {
   $( window ).bind( "scroll", eventListener );
} );

</script>
</body>
</html>

Download in other formats:

Original Format