|
5 | 5 | <title>Testing mousewheel plugin</title> |
6 | 6 |
|
7 | 7 | <script> |
8 | | - (function(){ |
9 | | - var verMatch = /v=([\w\.]+)/.exec( location.search ), |
10 | | - version = verMatch && verMatch[1], src; |
11 | | - if ( version ) { |
12 | | - src = 'code.jquery.com/jquery-' + version; |
13 | | - } else { |
14 | | - src = 'code.jquery.com/jquery-git'; |
15 | | - } |
16 | | - document.write( '<script src="http://' + src + '.js"><\/script>' ); |
| 8 | + (function() { |
| 9 | + var verMatch = /v=([\w\.]+)/.exec(location.search), |
| 10 | + version = verMatch && verMatch[1], |
| 11 | + src; |
| 12 | + if (version) |
| 13 | + src = 'code.jquery.com/jquery-' + version; |
| 14 | + else |
| 15 | + src = 'code.jquery.com/jquery-git'; |
| 16 | + document.write('<script src="http://' + src + '.js"><\/script>'); |
17 | 17 | })(); |
18 | 18 | </script> |
19 | 19 | <script src="../jquery.mousewheel.js"></script> |
|
160 | 160 |
|
161 | 161 | $('#test3') |
162 | 162 | .hover(function() { log('#test3: mouseover'); }, function() { log('#test3: mouseout'); }) |
163 | | - .mousewheel(function(event, delta, deltaX, deltaY) { |
| 163 | + .mousewheel(function() { |
164 | 164 | log('#test3: I should not have been logged'); |
165 | 165 | }) |
166 | 166 | .unmousewheel(); |
167 | 167 |
|
168 | | - var testRemoval = function(event, delta, deltaX, deltaY) { |
| 168 | + var testRemoval = function() { |
169 | 169 | log('#test4: I should not have been logged'); |
170 | 170 | }; |
171 | 171 |
|
|
202 | 202 | }); |
203 | 203 |
|
204 | 204 | function log(msg) { |
205 | | - $('#logger').append('<p>'+msg+'<\/p>')[0].scrollTop = 999999; |
206 | | - }; |
| 205 | + $('#logger').append('<p>' + msg + '<\/p>')[0].scrollTop = 999999; |
| 206 | + } |
207 | 207 | }); |
208 | 208 | </script> |
209 | 209 | </head> |
|
0 commit comments