SearchBuilder source code

SearchBuilder source code

LapointeLapointe Posts: 430Questions: 81Answers: 4

Hi

I have a look in dataTables.searchBuilder.js and find at row 4297 something like this:

        $.fn.dataTable.SearchBuilder = SearchBuilder;
        $.fn.DataTable.SearchBuilder = SearchBuilder;
        $.fn.dataTable.Group = Group;
        $.fn.DataTable.Group = Group;
        $.fn.dataTable.Criteria = Criteria;
        $.fn.DataTable.Criteria = Criteria;

Just let me know... Why are these line twice ?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583
    Answer ✓

    It's because you can access DataTables with both upper-case and lower-case, i.e. dataTables and DataTables, depending on whether you want an API object - see Allan's comment in this thread,

    Colin

  • LapointeLapointe Posts: 430Questions: 81Answers: 4

    Hi again

    I did not see there was a difference... Sorry. I'm sure my glasseyes are not so efficient

    :*

This discussion has been closed.