Skip to content

Commit a9e7a38

Browse files
committed
Correct indents
1 parent 93c18d1 commit a9e7a38

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

src/jquery.mousewheel.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,43 +36,43 @@
3636
version: "@VERSION",
3737

3838
setup: function() {
39-
// Use passive event listeners if supported
40-
var passiveSupported = false;
41-
try {
42-
var opts = Object.defineProperty({}, "passive", {
43-
get: function() {
44-
passiveSupported = true;
45-
}
46-
});
47-
window.addEventListener("test", null, opts);
48-
} catch (e) {}
49-
this.addEventListener(
50-
"wheel",
51-
handler,
52-
passiveSupported ? { passive: true } : false
53-
);
39+
// Use passive event listeners if supported
40+
var passiveSupported = false;
41+
try {
42+
var opts = Object.defineProperty({}, "passive", {
43+
get: function() {
44+
passiveSupported = true;
45+
}
46+
});
47+
window.addEventListener("test", null, opts);
48+
} catch (e) {}
49+
this.addEventListener(
50+
"wheel",
51+
handler,
52+
passiveSupported ? { passive: true } : false
53+
);
5454

5555
// Store the line height and page height for this particular element
5656
$.data( this, "mousewheel-line-height", special.getLineHeight( this ) );
5757
$.data( this, "mousewheel-page-height", special.getPageHeight( this ) );
5858
},
5959

6060
teardown: function() {
61-
// Remove with same passive option as setup
62-
var passiveSupported = false;
63-
try {
64-
var opts = Object.defineProperty({}, "passive", {
65-
get: function() {
66-
passiveSupported = true;
67-
}
68-
});
69-
window.addEventListener("test", null, opts);
70-
} catch (e) {}
71-
this.removeEventListener(
72-
"wheel",
73-
handler,
74-
passiveSupported ? { passive: true } : false
75-
);
61+
// Remove with same passive option as setup
62+
var passiveSupported = false;
63+
try {
64+
var opts = Object.defineProperty({}, "passive", {
65+
get: function() {
66+
passiveSupported = true;
67+
}
68+
});
69+
window.addEventListener("test", null, opts);
70+
} catch (e) {}
71+
this.removeEventListener(
72+
"wheel",
73+
handler,
74+
passiveSupported ? { passive: true } : false
75+
);
7676

7777
// Clean up the data we added to the element
7878
$.removeData( this, "mousewheel-line-height" );

0 commit comments

Comments
 (0)