Bug #2346

settings.createAction error (duktape)

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

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

100%

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

Description

Reproducible in icecast plugin

    var settings = plugin.createSettings("icecast", logo, plugin.getDescriptor().synopsis);

    settings.createAction("cleanFavorites", "Clean My Favorites", function () {
        store.list = "[]";
        showtime.notify('My Favorites has been cleaned succesfully', 2);
    });

Error:

icecast [ERROR]: ReferenceError (identifier 'conf' undefined) at showtime/settings:179
icecast [ERROR]: STACK DUMP: ReferenceError: identifier 'conf' undefined
                     duk_js_var.c:1232
                     anon showtime/settings:179
                     anon file:///root/showtime-plugins/icecast/icecast.js:68
                     global file:///root/showtime-plugins/icecast/icecast.js:313 preventsyield
                     call  native strict preventsyield
                     global dataroot://resources/ecmascript/legacy/api-v1.js:110 preventsyield

Associated revisions

Revision 1f82df19
Added by Andreas Smas over 6 years ago

ecamscript: Fix typo in setting.createAction()

Fixes #2346

Change included in version 4.7.452

History

#1 Updated by Andreas Smas over 6 years ago

crap

#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