/*!
- * OOjs UI v0.21.3
+ * OOjs UI v0.22.1
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2017 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2017-05-10T00:55:40Z
+ * Date: 2017-05-31T19:07:36Z
*/
( function ( OO ) {
.attr( 'role', 'button' );
this.$element
.data( 'oo-ui-tool', this )
- .addClass(
- 'oo-ui-tool ' + 'oo-ui-tool-name-' +
- this.constructor.static.name.replace( /^([^\/]+)\/([^\/]+).*$/, '$1-$2' )
- )
+ .addClass( 'oo-ui-tool' )
+ .addClass( 'oo-ui-tool-name-' + this.constructor.static.name.replace( /^([^\/]+)\/([^\/]+).*$/, '$1-$2' ) )
.toggleClass( 'oo-ui-tool-with-label', this.constructor.static.displayBothIconAndLabel )
.append( this.$link );
this.setTitle( config.title || this.constructor.static.title );
this.pressed.setActive( true );
this.getElementDocument().addEventListener( 'mouseup', this.onCapturedMouseKeyUpHandler, true );
this.getElementDocument().addEventListener( 'keyup', this.onCapturedMouseKeyUpHandler, true );
+ return false;
}
- return false;
}
};