 
 # default starting script: load hard-coded defaults
 # this function can be overriden by other packages for integrations
-BootstrapMagic.on 'start', ->
-  defaultDefaults = {}
-  for category in bootstrap_magic_variables
-    for variable in category.data
-      defaultDefaults[variable._id] = variable.value
-  @setDefaults defaultDefaults
+BootstrapMagic.on 'start', -> @setDefaults {}
 
 mapVariableOverrides = (obj) ->
   obj.isOverride = false

      obj.reference = obj.reference.reference

  return obj

flattenMagic = {}
for group in bootstrap_magic_variables
  for item in group.data
    flattenMagic[item._id] = item

camelToSnake = (str) -> str.replace(/\W+/g, '_').replace(/([a-z\d])([A-Z])/g, '$1-$2')


 
  'click .sub-menu a' : ->
    BootstrapMagic.dictionary.currentSubCategory.set @_id


###
# Colorpicker Create/Destroy
