PageSourceSearch

https://www.crececontigo.gob.cl/wp-content/themes/ChileCreceContigoTemplate/js/vendor/jquery-compat.js?ver=1.0

js crececontigo.gob.cl collected 2026-10-03 23:48:19 UTC 1,423 bytes, 41 lines download raw bytes

1/**
2 * jquery-compat.js
3 * Parche de compatibilidad para Bootstrap 3 con jQuery 3.x
4 * Restaura funciones eliminadas en jQuery 3 que Bootstrap 3 usa internamente.
5 */
6(function($) {
7    // $.isFunction fue eliminado en jQuery 3.3
8    if (typeof $.isFunction === 'undefined') {
9        $.isFunction = function(obj) {
10            return typeof obj === 'function';
11        };
12    }
13    // $.type fue eliminado en jQuery 3.3
14    if (typeof $.type === 'undefined') {
15        $.type = function(obj) {
16            if (obj === null) return 'null';
17            return typeof obj === 'object' || typeof obj === 'function' ?
18                Object.prototype.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase() :
19                typeof obj;
20        };
21    }
22    // $.now fue eliminado en jQuery 3.3
23    if (typeof $.now === 'undefined') {
24        $.now = Date.now;
25    }
26    // $.expr[":"] para selectores de pseudoclase (Bootstrap tooltip/affix)
27    if (!$.expr[":"]) {
28        $.expr[":"] = $.expr.pseudos;
29    }
30    // $.fn.size fue eliminado en jQuery 3.0 (usado en algunos plugins antiguos)
31    if (typeof $.fn.size === 'undefined') {
32        $.fn.size = function() {
33            return this.length;
34        };
35    }
36    // Soporte para eventos .success/.error en AJAX (estilo antiguo jqXHR)
37    if (typeof $.fn.success === 'undefined') {
38        $.fn.success = $.fn.done;
39        $.fn.error = $.fn.fail;
40    }
41})(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.