       @startVal = @endVal
       $input.trigger 'change'
 
+objByCat = ->
+  myCat = currentCat.get()
+  _.where(bootstrap_magic_variables, { category: myCat })
 
 #Time for Templates
 


  'click .menu-secondary-list' : -> 
    currentCat.set(@category)
    myCat = currentCat.get()
    objByCat = _.where(bootstrap_magic_variables, { category: myCat })
    if (_.map objByCat, (obj) -> obj).length is 1
      currentSubCat.set(objByCat[0].keyName)
      $('.sub-cat-message h4').remove()
      $('.sub-cat-item').show()
    else

  #   return bootstrap_magic_variables

  "categories" : ->  _.map _.groupBy(bootstrap_magic_variables, 'category'), (obj) ->  obj[0]
  "subCategories" : ->  _.map objByCat(), (obj) -> obj
  "previewTmpl" : -> Template["bootstrap_magic_preview_#{camelToSnake @keyName}"] || null
  "inputTmpl" : -> Template["bootstrap_magic_input_#{@type}"] || null
  "formattedCat" : -> formatCamel @category
