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

Content deleted Content added
-2.0
-2.1
Line 1:
/// User:PerfektesChaos/js/citoidWikitext/core.js
// Execute core functionality for citoid on wikitext source editing
/// 2016-02-0115 PerfektesChaos@de.wikipedia
// ResourceLoader: compatible;
// dependencies: --
Line 17:
( function ( mw, $ ) {
"use strict";
var VERSION = -2.01,
MW_LIB = "citoidWikitext",
Sub = "core",
Line 2,460:
UTIL.feed = function ( assigned, access, age, address ) {
// Load and run script
// Precondition:"empty"
// assigned -- signature
// access -- script
Line 2,467:
// Uses:
// mw.loader.getState()
// mw.loader.implementstate()
// 2015-10-04 PerfektesChaos@de mw.loader.wikipediaload()
// 2016-02-15 PerfektesChaos@de.wikipedia
var source = address;
if ( ! mw.loader.getState( assigned ) ) {
mw.loader.state( assigned, "loading" );
if ( ! source ) {
source = "https://en.wikipedia.org"
Line 2,481 ⟶ 2,483:
+ "&ctype=text/javascript";
}
mw.loader.implementload( assignedsource, [ source ]"text/javascript" );
}
}; // UTIL.feed()