Merge "Empty all inputs on link inspector teardown"

This commit is contained in:
jenkins-bot 2015-06-08 14:37:26 +00:00 committed by Gerrit Code Review
commit b24a4529c5

View file

@ -145,6 +145,9 @@ ve.ui.MWLinkAnnotationInspector.prototype.getTeardownProcess = function ( data )
return ve.ui.MWLinkAnnotationInspector.super.prototype.getTeardownProcess.call( this, data ) return ve.ui.MWLinkAnnotationInspector.super.prototype.getTeardownProcess.call( this, data )
.next( function () { .next( function () {
this.allowProtocolInInternal = false; this.allowProtocolInInternal = false;
// Make sure both inputs are cleared
this.internalAnnotationInput.setAnnotation( null );
this.externalAnnotationInput.setAnnotation( null );
}, this ); }, this );
}; };