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

Post bug reports when testing beta versions here.
Post Reply
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

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

Post 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.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

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

Post by Rickard Johansson »

Fixed in next beta version. Thanks!
Post Reply