Bug #2329

createMultiopt should be createMultiOpt in api v1 (typo)

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

Status:FixedStart date:11/04/2014
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

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

Description

Reproducible on ex.ua plugin. The code is:

    var settings = plugin.createSettings(plugin.getDescriptor().id, logo, plugin.getDescriptor().synopsis);
    settings.createDivider('Settings');
    settings.createMultiOpt("lang", "Language", [
        ['en', 'english', true],
        ['ru', 'русский'],
        ['uk', 'українська'],
        ['es', 'espanol'],
        ['de', 'deutsch'],
        ['fr', 'français'],
        ['pl', 'polski'],
        ['ja', '日本語'],
        ['kk', 'қазақ']
    ], function(l) {
        service.lang = l;
    }); // line 41 is here

ECMASCRIPT [ERROR]: TypeError (call target not an object) at file:///root/showtime-plugins/ex_ua/ex_ua.js:41
ECMASCRIPT [ERROR]: STACK DUMP: TypeError: call target not an object
                        duk_js_executor.c:2761
                        anon file:///root/showtime-plugins/ex_ua/ex_ua.js:41
                        global file:///root/showtime-plugins/ex_ua/ex_ua.js:366 preventsyield
                        call  native strict preventsyield
                        global dataroot://resources/ecmascript/legacy/api-v1.js:172 preventsyield

Associated revisions

Revision 3ba65b46
Added by Andreas Smas over 6 years ago

ecmascript: Rename createMultiopt -> createMultiOpt

Fixes #2329

Change included in version 4.7.429

History

#1 Updated by Leonid Protasov over 6 years ago

  • Subject changed from duktape still complains about multiopt to createMultiopt should be createMultiOpt in api v1 (typo)

#2 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