/*!
- * OOUI v0.31.1
+ * OOUI v0.31.4
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2019-03-21T15:54:37Z
+ * Date: 2019-04-16T23:14:51Z
*/
( function ( OO ) {
}
};
+/**
+ * @inheritdoc OO.ui.mixin.IconElement
+ */
+OO.ui.Tool.prototype.setIcon = function ( icon ) {
+ // Mixin method
+ OO.ui.mixin.IconElement.prototype.setIcon.call( this, icon );
+
+ this.$element.toggleClass( 'oo-ui-tool-with-icon', !!this.icon );
+
+ return this;
+};
+
/**
* Destroy tool.
*