vendor: 1,883 bytes, lines 1-65
1(function (e) { 2 function r(t) { 3 var n = t || window.event, 4 r = [].slice.call(arguments, 1), 5 i = 0, 6 s = true, 7 o = 0, 8 u = 0; 9 t = e.event.fix(n); 10 t.type = "mousewheel"; 11 if (n.wheelDelta) { 12 i = n.wheelDelta / 120; 13 } 14 if (n.detail) { 15 i = -n.detail / 3; 16 } 17 u = i; 18 if (n.axis !== undefined && n.axis === n.HORIZONTAL_AXIS) { 19 u = 0; 20 o = -1 * i; 21 } 22 if (n.wheelDeltaY !== undefined) { 23 u = n.wheelDeltaY / 120; 24 } 25 if (n.wheelDeltaX !== undefined) { 26 o = (-1 * n.wheelDeltaX) / 120; 27 } 28 r.unshift(t, i, o, u); 29 return (e.event.dispatch || e.event.handle).apply(this, r); 30 } 31 var t = ["DOMMouseScroll", "mousewheel"]; 32 if (e.event.fixHooks) { 33 for (var n = t.length; n; ) { 34 e.event.fixHooks[t[--n]] = e.event.mouseHooks; 35 } 36 } 37 e.event.special.mousewheel = { 38 setup: function () { 39 if (this.addEventListener) { 40 for (var e = t.length; e; ) { 41 this.addEventListener(t[--e], r, false); 42 } 43 } else { 44 this.onmousewheel = r; 45 } 46 }, 47 teardown: function () { 48 if (this.removeEventListener) { 49 for (var e = t.length; e; ) { 50 this.removeEventListener(t[--e], r, false); 51 } 52 } else { 53 this.onmousewheel = null; 54 } 55 }, 56 }; 57 e.fn.extend({ 58 mousewheel: function (e) { 59 return e ? this.bind("mousewheel", e) : this.trigger("mousewheel"); 60 }, 61 unmousewheel: function (e) { 62 return this.unbind("mousewheel", e); 63 }, 64 }); 65})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.