Logical Mistake In Core.js

Dear developers, please consider code in file /js/tygh/core.js starting from line 996 (CS Cart version 4.3.9):

var dlg = $('.cm-dialog-auto-open');
dlg.ceDialog('open', $.ceDialog('get_params', dlg));

There is a logical error admitted in a code sample. As dlg.length can be greater than 1, so, what is the definite result of $.ceDialog('get_params', dlg) ? Result of invocation of $.ceDialog.bind('get_params') in this case returns params of the whole dlg objects collection, which is incorrect. The correct behavior can be reproduced by something like

    $(this).ceDialog('open', $.ceDialog('get_params', this));


Please post issue to the bug tracker