 
   setDomElement:(cssClass)->
     {title, labels, name} = @getOptions()
-    title       = "<span>#{title}</span>" if title
+    title       = "<span>#{title}</span>" if title isnt ''
     @inputName  = name
     @domElement = $ """
       <div class='kdinput on-off off #{cssClass}'>

    options.attributes ?= {}
    options.attributes.checked ?= options.defaultValue or no
    super options, data

class KDOnOffSwitch extends KDInputView
  constructor:(options = {}, data)->

    options.type           = "switch"
    options.title        or= ""
    options.size         or= "small"        # a String tiny/small/big
    options.labels       or= ["ON"  , "OFF"]
    options.defaultValue  ?= off
    super options, data

