Bug #2425

page.options.createBool in api v1 passes true as integer of 0 instead of boolean true

Added by Leonid Protasov over 6 years ago. Updated over 6 years ago.

Status:FixedStart date:12/21/2014
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:API
Target version:4.8
Found in version:4.7.535 Platform:Linux

Description

The code in rad.io plugin:

            page.options.createBool('informationBar', 'Show Information Bar', true, function (v) {
                page.metadata.informationBar = v;
            }, true);

v = 0 instead of true;

If you do this as workaround:

            page.options.createBool('informationBar', 'Show Information Bar', 1, function (v) {
                page.metadata.informationBar = v;
            }, true);

v = 1 but it is incorrect as the param should be bool as told in specs.

Associated revisions

Revision 664950bd
Added by Andreas Smas over 6 years ago

ecmascript/settings: Better handling of bool type

Fixes #2425

Change included in version 4.7.538

History

#1 Updated by Andreas Smas over 6 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF