 Template.dataTable.getOptions = ->
   return @getData().options or @presetOptions() or false
 
-# ## prepareOptions()
+# ### 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

  @prepareCountCollection()
  return

# ### `subscription` String ( required )
#   * The name of the subscription your datatables is paging, sorting, and filtering
#   * This must be a datatable compatible publication ( for more info see Publishing below )
Template.dataTable.setSubscription = ( subscription ) ->

  @setDefaultCellValue column for column in columns
  @setColumns columns

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