ElementStyler: Re-add change_event check as warning
* src/ui/ElementStyler.js (setValueByName)[change_event]: Re-add `change_event' check, but as a warning instead of an Error. This shouldn't be used anymore, but let's be certain _without_ breaking things.master
parent
51e8c1428f
commit
1325dc9a86
|
@ -452,6 +452,14 @@ module.exports = Class( 'ElementStyler',
|
|||
{
|
||||
change_event = ( change_event === undefined ) ? true : change_event;
|
||||
|
||||
// just to be sure before we fully remove this
|
||||
if ( change_event !== false )
|
||||
{
|
||||
console.warning(
|
||||
"ElementStyler#setValueByName change_event is being removed"
|
||||
);
|
||||
}
|
||||
|
||||
// set value
|
||||
switch ( this._getElementType( name ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue