1
0
Fork 0

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
Mike Gerwitz 2018-02-07 12:01:35 -05:00
parent 51e8c1428f
commit 1325dc9a86
1 changed files with 8 additions and 0 deletions

View File

@ -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 ) )
{