I simply wish to call a function called fnGetNodes() to get an array of all nodes.
(source of data-tables functions to calls: http://datatables.net/api)
I have set up as:
# DataTable
table = $("#restaurantLocations").DataTable()
# Selecting all
$("#selectAllLocations").click ->
rows = table.fnGetNodes()
Yet as I refresh and click the button Select All I receive the following error on the line table.fnGetNodes():

It should be very easy, but how can I call functions on datatables in CoffeeScript?
tableafter you refresh? Istablewhat you expect it to be inside the callback? Istablein scope when you define that callback? Are you saying$x.DataTable()or$x.dataTable()?table.fnGetNodes()with$("#restaurantLocations").dataTable().fnGetNodes()table = $("#restaurantLocations").DataTable()that should have beentable = $("#restaurantLocations").dataTable()then?$("#restaurantLocations").dataTable()on those other functions