Merge "TitleInputWidget, UserInputWidget: Allow overriding 'infusable'"
This commit is contained in:
commit
a2f75a52ef
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ class TitleInputWidget extends \OOUI\TextInputWidget {
|
|||
*/
|
||||
public function __construct( array $config = array() ) {
|
||||
// Parent constructor
|
||||
parent::__construct( array_merge( $config, array( 'infusable' => true ) ) );
|
||||
parent::__construct( array_merge( array( 'infusable' => true ), $config ) );
|
||||
|
||||
// Properties, which are ignored in PHP and just shipped back to JS
|
||||
if ( isset( $config['namespace'] ) ) {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class UserInputWidget extends \OOUI\TextInputWidget {
|
|||
*/
|
||||
public function __construct( array $config = array() ) {
|
||||
// Parent constructor
|
||||
parent::__construct( array_merge( $config, array( 'infusable' => true ) ) );
|
||||
parent::__construct( array_merge( array( 'infusable' => true ), $config ) );
|
||||
|
||||
// Initialization
|
||||
$this->addClasses( array( 'mw-widget-userInputWidget' ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue