PageSourceSearch

http://www.kubaforen.de/inc/lib/bootstrap4/js/jquery.hammer.js?rev=2085

js kubaforen.de collected 2026-09-26 18:32:59 UTC 989 bytes, 34 lines download raw bytes

vendor: 989 bytes, lines 1-34
1
2(function(factory) {
3    if (typeof define === 'function' && define.amd) {
4        define(['jquery', 'hammerjs'], factory);
5    } else if (typeof exports === 'object') {
6        factory(require('jquery'), require('hammerjs'));
7    } else {
8        factory(jQuery, Hammer);
9    }
10}(function($, Hammer) {
11    function hammerify(el, options) {
12        var $el = $(el);
13        if(!$el.data("hammer")) {
14            $el.data("hammer", new Hammer($el[0], options));
15        }
16    }
17
18    $.fn.hammer = function(options) {
19        return this.each(function() {
20            hammerify(this, options);
21        });
22    };
23
24    // extend the emit method to also trigger jQuery events
25    Hammer.Manager.prototype.emit = (function(originalEmit) {
26        return function(type, data) {
27            originalEmit.call(this, type, data);
28            $(this.element).trigger({
29                type: type,
30                gesture: data
31            });
32        };
33    })(Hammer.Manager.prototype.emit);
34}));

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.