 
         @bind 'data-bind'
 
+        textTypes: ['text','hidden', 'email']
         constructor: (@node)->
             @type = @node.type
             super @node

                $(@node).val()
            else if not @type or @type == ""?
                $(@node).html()
            else if @type == 'text' or @type == "hidden"
                @node.value
            else if @type == 'checkbox'
                $(@node).is ':checked'

            else if not @type or @type == ""?
                if value?
                    @node.innerHTML = value
            else if @type in @textTypes
                @node.value = value
            else if @type == 'password'
                @node.value = value or ''
            else if @type == 'checkbox'
                $(@node).attr 'checked', value
            this
