PageSourceSearch

https://hadairoha.com/wp-content/themes/hadairoha_231206/js/migrate.js

js hadairoha.com collected 2026-09-30 22:58:21 UTC 1,887 bytes, 71 lines download raw bytes

1
2var warnedAbout = {};
3
4// List of warnings already given; public read only
5jQuery.migrateWarnings = [];
6
7// Set to true to prevent console output; migrateWarnings still maintained
8// jQuery.migrateMute = false;
9
10// Show a message on the console so devs know we're active
11if ( !jQuery.migrateMute && window.console && window.console.log ) {
12	window.console.log("JQMIGRATE: Logging is active");
13}
14
15// Set to false to disable traces that appear with warnings
16if ( jQuery.migrateTrace === undefined ) {
17	jQuery.migrateTrace = true;
18}
19
20// Forget any warnings we've already given; public
21jQuery.migrateReset = function() {
22	warnedAbout = {};
23	jQuery.migrateWarnings.length = 0;
24};
25
26function migrateWarn( msg) {
27	var console = window.console;
28	if ( !warnedAbout[ msg ] ) {
29		warnedAbout[ msg ] = true;
30		jQuery.migrateWarnings.push( msg );
31		if ( console && console.warn && !jQuery.migrateMute ) {
32			console.warn( "JQMIGRATE: " + msg );
33			if ( jQuery.migrateTrace && console.trace ) {
34				console.trace();
35			}
36		}
37	}
38}
39
40function migrateWarnProp( obj, prop, value, msg ) {
41	if ( Object.defineProperty ) {
42		// On ES5 browsers (non-oldIE), warn if the code tries to get prop;
43		// allow property to be overwritten in case some other plugin wants it
44		try {
45			Object.defineProperty( obj, prop, {
46				configurable: true,
47				enumerable: true,
48				get: function() {
49					migrateWarn( msg );
50					return value;
51				},
52				set: function( newValue ) {
53					migrateWarn( msg );
54					value = newValue;
55				}
56			});
57			return;
58		} catch( err ) {
59			// IE8 is a dope about Object.defineProperty, can't warn there
60		}
61	}
62
63	// Non-ES5 (or broken) browser; just set the property
64	jQuery._definePropertyBroken = true;
65	obj[ prop ] = value;
66}
67
68if ( document.compatMode === "BackCompat" ) {
69	// jQuery has never supported or tested Quirks Mode
70	migrateWarn( "jQuery is not compatible with Quirks Mode" );
71}

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.