App.BooleanSwitchComponent = Ember.Component.extend
  layoutName: "form/boolean-switch"
  classNames: "switch"
  classNameBindings: ['rounded:round']

  # UniqueId is used to connect the label and the checkbox to eachother in the template
  setUniqueId: (->@set 'switchId', "switch-#{Math.round(Math.random()*1000)}").on('init')
