Do not add 'required' if not set and false wanted

The 'required' property of a 'Param' is optional and defaults to false.
Thus there is no reason for adding it when it was not set and the user wants it to be false.

Bug: 61761
Change-Id: I2b2fae5d2d8b1dac2ad2e1a965d9ba5bd7372eef
This commit is contained in:
Ltrlg 2014-02-21 20:57:56 +01:00 committed by Krinkle
parent 6e78aaa9b1
commit 6a014700da

View file

@ -580,7 +580,7 @@
break;
case 'required':
newValue = $domEl.prop( 'checked' );
if ( paramObj[paramProp] !== newValue ) {
if ( paramObj[paramProp] !== undefined || newValue === true ) {
paramObj[paramProp] = newValue;
}
break;