Merge "mw.ViewPageTarget: Check elementsThatHadOurAccessKey before accessing"

This commit is contained in:
jenkins-bot 2014-03-06 17:18:09 +00:00 committed by Gerrit Code Review
commit c22ddb3463

View file

@ -226,7 +226,7 @@ ve.init.mw.ViewPageTarget.prototype.deactivate = function ( override ) {
) {
this.deactivating = true;
// User interface changes
if ( ve.msg( 'accesskey-save' ) !== '-' && ve.msg( 'accesskey-save' ) !== '' ) {
if ( this.elementsThatHadOurAccessKey ) {
this.elementsThatHadOurAccessKey.attr( 'accesskey', ve.msg( 'accesskey-save' ) );
}
this.restorePage();