Skip to content

Instantly share code, notes, and snippets.

@werdnum
Created March 25, 2015 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save werdnum/85e0eb2ac811c312e24f to your computer and use it in GitHub Desktop.
Save werdnum/85e0eb2ac811c312e24f to your computer and use it in GitHub Desktop.
/**
* This is more or less an IconWidget that can be flagged
* @class
* @extends OO.ui.IconWidget
* @mixins OO.ui.FlaggedElement
* @constructor
* @param {Object} [config] Configuration options
*/
OO.ui.IconDemoWidget = function OoUiIconDemoWidget( config ) {
config = config || {};
OO.ui.IconDemoWidget.super.call( this, config );
OO.ui.FlaggedElement.call( this, config );
}
OO.inheritClass( OO.ui.IconDemoWidget, OO.ui.IconWidget );
OO.mixinClass( OO.ui.IconDemoWidget, OO.ui.FlaggedElement );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment