 Template.dataTable.getTableState = ->
   return @getData().tableState or false
 
-# ## fnServerData()
+# ### fnServerData()
 #   * The callback for every dataTables user / reactivity event
 #   * `sSource` is the currently useless `sAjaxProp` from the options
 #   * `aoData` is an array of objects provided by datatables reflecting its current state
 #   * `fnCallback` is the function that will be called when the server returns a result
 #   * `oSettings` is the datatables settings object
-# ### Wat?
+# #### Wat?
 #   * `setTableState()` parses aoData and creates a usable table state object
 #   * `setSubscriptionOptions()` turns the table state into a MongoDB query options object
 #   * `setSubscriptionHandle()` subscribes the the dataset for the current table state

  @setDefaultCellValue column for column in columns
  @setColumns columns

# #### setDefaultCellValue
#   * defaults all cells to "" if undefined
Template.dataTable.setDefaultCellValue = ( column ) ->
  Match.test column.mData, String

Template.dataTable.getOptions = ->
  return @getData().options or @presetOptions() or false

# ### prepareOptions()
#   * Prepares the datatable options object by merging the options passed in with the defaults
#   * If the componet was declared with a collection and a query it is setup as a reactive datatable
#   * `options.sAjaxSource` is currently useless, but is passed into `fnServerData` by datatables
