1/** 2 * @file 3 * Restores jQuery helpers removed in jQuery 4. 4 * 5 * Drupal 11.4 ships jQuery 4.0. Magnific Popup 1.1.0 still calls 6 * jQuery.isArray and jQuery.isFunction while opening an image, which 7 * throws and aborts the lightbox. 8 */ 9(function ($) { 10 if (typeof $.isArray !== 'function') { 11 $.isArray = Array.isArray; 12 } 13 14 if (typeof $.isFunction !== 'function') { 15 $.isFunction = function (value) { 16 return typeof value === 'function'; 17 }; 18 } 19})(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.