Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardLicenseInput.js |
— | — | @@ -153,8 +153,8 @@ |
154 | 154 | var _this = this; |
155 | 155 | $j.each( _this.inputs, function( i, $input ) { |
156 | 156 | var templateString = $input.data( 'templateString' ); |
157 | | - // !! to ensure boolean. ~~ to cast to 0 or 1. Similar to php's (int) (bool) val |
158 | | - $input.attr( 'checked', ~~!!values[templateString] ); |
| 157 | + // !! to ensure boolean. |
| 158 | + $input.attr( 'checked', !!values[templateString] ); |
159 | 159 | } ); |
160 | 160 | // we use the selector because events can't be unbound unless they're in the DOM. |
161 | 161 | _this.$selector.trigger( 'changeLicenses' ); |