User:PerfektesChaos/js/citoidWikitext/core/d.js: Difference between revisions

Content deleted Content added
-3.3
-3.4
Line 1:
/// User:PerfektesChaos/js/citoidWikitext/core.js
// Execute core functionality for citoid on wikitext source editing
/// 2017-06-0410 PerfektesChaos@de.wikipedia
// ResourceLoader: compatible;
// dependencies: --
Line 17:
( function ( mw, $ ) {
"use strict";
var Version = -3.34,
MW_LIB = "citoidWikitext",
Sub = "core",
Line 119:
// >< APIC.queries
// TASK.follow()
// 2017-06-0410 PerfektesChaos@de.wikipedia
var n = APIC.queries.length,
i, j, q, r, ufo;
for ( i = 0; i < n; i++ ) {
r = APIC.results[ i ];
for ( j = 0; j < n; j++ ) {
q = APIC.queries[ j ];
if ( q === r.url ) {
r.lucky = true;
APIC.queries[ j ] = r;
r = false;
break; // for j
}
} // for j
if ( r ) {
iffor ( !j ufo= 0; j < n; j++ ) {
ufoq = APIC.queries[ j ];
if ( q === r.url ) {
r.lucky = true;
q = APIC.queries[ j ] = r;
r = false;
break; // for j
}
} // for j
ufo.pushif ( r ); {
for ( j = 0; jif < n;( ! j++ufo ) {
r.idResult ufo = i[ ];
}
APICr.queries[ j ]idResult = ri;
ufo.push( r );
}
r.idResult = i;
ufo.push( r );
}
} // for i