src/bindings.js
// Unsubscribes from the model and the element.
Unsubscribes from the model and the element.
Unsubscribes from the model and the element .
unbind() {
    if (this.binder.unbind) {
      this.binder.unbind.call(this, this.el)
    }
    if (this.observer) {
      this.observer.unobserve()
    }
    Object.keys(this.formatterObservers).forEach(fi => {
      let args = this.formatterObservers[fi]
      Object.keys(args).forEach(ai => {
        args[ai].unobserve()
      })
    })
    this.formatterObservers = {}
  }
unbind ( ) { if ( this . binder . unbind ) { this . binder . unbind . call ( this , this . el ) } if ( this . observer ) { this . observer . unobserve ( ) } Object . keys ( this . formatterObservers ) . forEach ( fi => { let args = this . formatterObservers [ fi ] Object . keys ( args ) . forEach ( ai => { args [ ai ] . unobserve ( ) } ) } ) this . formatterObservers = { } }
Unsubscribes from the model and the element.
Unsubscribes from the model and the element .