Remove mentions of schema.* ResourceLoader modules

These modules are deprecated and will be removed, see parent task for
details and deprecation information.

Bug: T223286
Change-Id: I72a1ab68f94842b2fa9bcd84c21ea736a48e0614
This commit is contained in:
Dan Andreescu 2019-05-14 21:19:34 -04:00
parent ef6b6b70be
commit 7d61121793
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@ composer.lock
vendor
node_modules/
.eslintcache
package-lock.json
# Editors
*.kate-swp

View file

@ -12,11 +12,11 @@
};
function logEditEvent( action, data ) {
if ( mw.loader.getState( 'schema.EditAttemptStep' ) === null ) {
if ( mw.loader.getState( 'ext.eventLogging' ) === null ) {
return;
}
mw.loader.using( [ 'schema.EditAttemptStep', 'ext.eventLogging.subscriber' ] ).done( function () {
mw.loader.using( [ 'ext.eventLogging' ] ).done( function () {
// Sampling
// We have to do this on the client too because the unload handler
// can cause an editingSessionId to be generated on the client