Page 1 of 1

FIXED: [15.90b2] Code Explorer/Module missing function

Posted: 01 Jun 2023 08:00
by pjj
So I have this JavaScript file:

Code: Select all

$.fn.dataTable.ext.type.detect.unshift(function (d) {
    return d === 'one' || d === 'two' ||  d === 'three' ? 'status-grade' : null;
});
// ---- datatables
$(document).ready(function() {
    /* sort on status */
    $.fn.dataTable.ext.type.order['status-grade-pre'] = function (d) {
        switch (d) {
            case 'one':
                return 1;
            case 'two':
                return 2;
            case 'three':
                return 3;
        }
        return 0;
    };
});
Code Explorer shows me these two functions:

Code: Select all

$(document).ready(function() {
$.fn.dataTable.ext.type.order['status-grade-pre'] = function (d) {
but not

Code: Select all

$.fn.dataTable.ext.type.detect.unshift(function (d) {
However this function is recognized if I delete a space after "function" word:

Code: Select all

$.fn.dataTable.ext.type.detect.unshift(function(d) {
while in the nested function above this space doesn't prevent editor from recognizing it and displaying in Code Explorer.

Re: [15.90b2] Code Explorer/Module missing function

Posted: 08 Jun 2023 14:35
by Rickard Johansson
Fixed in next beta version. Thanks!