text: var _ = require('../../util')
  
  module.exports = {
  
    bind: function () {
      var self = this
      var el = this.el
      var number = this._checkParam('number') != null
      var expression = this._checkParam('exp')
  
      this.getValue = function () {
        var val = el.value
        if (number) {
          val = _.toNumber(val)
        } else if (expression !== null) {
          val = self.vm.$eval(expression)
        }
        return val
      }
  
      this.on('change', function () {
        self.set(self.getValue())
      })
  
      if (el.checked) {
        this._initValue = this.getValue()
      }
    },
  
    update: function (value) {
      this.el.checked = _.looseEqual(value, this.getValue())
    }
  }
  