Two oSettings object instance in table it's correct?

Two oSettings object instance in table it's correct?

ColorAntColorAnt Posts: 5Questions: 0Answers: 0
edited February 2014 in DataTables 1.9
Hi, all.
First, sorry for my English.
My problem:
I update dT from 1.8.2 to 1.9.4 and discover what my dataTables object which I save as
[code]var table = $("#kdl-profile-table").dataTable({[/code]
,and which I use below in my functions,
have two instance table.dataTableSettings [0] and [1].

Its correct behaviour? I'm not see it early.

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    If they are both the same table - then that really shouldn't happen. Can you link me to the page so I can take a look please?

    Allan
  • ColorAntColorAnt Posts: 5Questions: 0Answers: 0
    It's difficult link that page, because it in Intranet.
    But, I create a fiddle http://jsfiddle.net/5SK9n/
    I clean code from my plugins and other corporate-stuff, but bug are reproduce.
    If breakpoint on row 86 (var cell = e.currentTarget;) then table have two instance in table.dataTableSettings.
    Screen http://clip2net.com/s/6OYV4w
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Thanks for your example. it shows: `$.fn.dataTableSettings.length === 1` though, so I'm not sure I see the problem there?

    Allan
  • ColorAntColorAnt Posts: 5Questions: 0Answers: 0
    edited February 2014
    Yes, you right!
    console.log(table.dataTableSettings.length);
    on 86 show "1" in my fiddle.
    But locally show "2".
    May be it's FF problem or problem of our project with more plugins.
    This behaviour is not affected program. It's simply interesting :)
    Thank you for answer and you work, it's great!
This discussion has been closed.