1
0
Fork 0

ElementStyler: Remove unused `autochange'

This used to be a thing back when we used Dojo, but it doesn't appear to be
used anymore.

* src/ui/ElementStyler.js (setValueByName): Remove `autochange' check.

 Lines starting
master
Mike Gerwitz 2018-02-02 16:43:34 -05:00
parent 1f6ea234ff
commit fa9ee5d340
1 changed files with 1 additions and 3 deletions

View File

@ -508,9 +508,7 @@ module.exports = Class( 'ElementStyler',
$element.val( ''+( value ) );
}
// the autochange propery signifies that we should trigger the
// change event
if ( $element !== undefined && ( change_event || ( $element.data( 'autochange' ) === true ) ) )
if ( $element && change_event )
{
$element.trigger( 'change' );
}