UNPKG

ractive

Version:

Next-generation DOM manipulation

16 lines (13 loc) 363 B
import runloop from 'global/runloop'; export default function unbind () { if ( !this.keypath ) { // this was on the 'unresolved' list, we need to remove it runloop.removeUnresolved( this ); } else { // this was registered as a dependant this.root.viewmodel.unregister( this.keypath, this ); } if ( this.resolver ) { this.resolver.teardown(); } }