Clean up issues left c/121064

Change-Id: I5daa3c8f75c93dbbd6a8f748a6c869d73d3959f6
This commit is contained in:
Aaron Arcos 2014-04-09 18:23:42 -07:00
parent 02735e3431
commit be76d4b5db

View file

@ -82,7 +82,6 @@
* Currently selected size menu.
* @property {OO.ui.MenuWidget}
*/
this.currentSizeMenu = this.embedSizeSwitchWikitext.getMenu();
this.currentSizeMenu = mw.user.isAnon() ? this.embedSizeSwitchHtml.getMenu() : this.embedSizeSwitchWikitext.getMenu();
/**
@ -424,8 +423,6 @@
.done( function ( thumbnail ) {
embed.updateEmbedHtml( thumbnail );
embed.select();
// This is needed to update the input's wikitext/html based on the currently selected item
embed.currentSizeMenu.selectItem( embed.currentSizeMenu.getSelectedItem() );
} );
};