Follow-up I63ab27cb: Get rid of notices tool when there are no notices

Bug: T151423
Change-Id: I3dd9d2cbfb1fa536490eb8b4b7d630e9c6cfdd48
This commit is contained in:
Alex Monk 2016-11-23 00:10:43 +00:00 committed by Jforrester
parent 3d8a749cf2
commit b89a6ee463

View file

@ -93,7 +93,7 @@ ve.ui.MWNoticesPopupTool.prototype.setNotices = function ( notices ) {
this.popup.$body.append( this.$items );
if ( !count ) {
this.$element = $( [] );
this.destroy();
}
};