Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82789

Why is the API context element an array? When would there ever be more than 1 element?

$
0
0

This is really just out of curiosity, but when I initiate a table and poke around the DataTables object, I find the context element:

var dt = new $.fn.dataTable.Api( '#example' )
dt.context // Array 
dt.context[0] // Object
dt.context[0].sTableId // "example"

My question is: is there a reason that dt.context doesn't go right to the object currently stored at dt.context[0]? I'm assuming theres some logical reason that context is an array, I just don't see at the moment and thought id ask.

Thanks!
-J

P.S. HI ALLAN! Long time no talk. Hope all is well.


Viewing all articles
Browse latest Browse all 82789

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>