                 options = {}
 
                 value = getter(element)
-                value = if convert then convert(value) else value
+                value = if convert then convert value else value
 
                 attrs[attr] = value
 

        # passed in value. this is typically necessary when observing
        # multiple attibutes.
        value = if handler then handler() else value
        value = if convertBack then convertBack(value) else value

        setter(element, value)

    for attr in config.observes
        # if config.event is defined, this adds the second binding to make this


            element.bind config.event, toModel

        model.bind "change:#{attr}", toElement
        model.trigger "change:#{attr}", model, model.get(attr)


class ObservableView extends Backbone.View
    setupBindings: ->
        for config in @bindings
            element = $ config.selector, @el
            setupBinding element, config, @

