Skip to content

Commit 29b6ddb

Browse files
committed
test/index.html: minor JS improvements.
Remove unused variables, keep style consistent.
1 parent 0ff9805 commit 29b6ddb

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

test/index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<title>Testing mousewheel plugin</title>
66

77
<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>');
1717
})();
1818
</script>
1919
<script src="../jquery.mousewheel.js"></script>
@@ -160,12 +160,12 @@
160160

161161
$('#test3')
162162
.hover(function() { log('#test3: mouseover'); }, function() { log('#test3: mouseout'); })
163-
.mousewheel(function(event, delta, deltaX, deltaY) {
163+
.mousewheel(function() {
164164
log('#test3: I should not have been logged');
165165
})
166166
.unmousewheel();
167167

168-
var testRemoval = function(event, delta, deltaX, deltaY) {
168+
var testRemoval = function() {
169169
log('#test4: I should not have been logged');
170170
};
171171

@@ -202,8 +202,8 @@
202202
});
203203

204204
function log(msg) {
205-
$('#logger').append('<p>'+msg+'<\/p>')[0].scrollTop = 999999;
206-
};
205+
$('#logger').append('<p>' + msg + '<\/p>')[0].scrollTop = 999999;
206+
}
207207
});
208208
</script>
209209
</head>

0 commit comments

Comments
 (0)