Bug Tracker

Ticket #7159: double_unbind_bug_test.html

File double_unbind_bug_test.html, 540 bytes (added by alex3683, 9 years ago)

A test case for #7159

Line 
1<html>
2<head>
3<style type="text/css">
4
5   #output {
6      width: 400px;
7      /*height: 200px;*/
8      height: 3000px;
9   }
10
11</style>
12</head>
13<body>
14
15<textarea id="output" ></textarea>
16
17<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3rc1.js"></script>
18<script type="text/javascript">
19
20var eventListener = function() {
21   $( window ).unbind( "scroll", eventListener );
22   $( window ).unbind( "scroll", eventListener );
23};
24
25$( function() {
26   $( window ).bind( "scroll", eventListener );
27} );
28
29</script>
30</body>
31</html>