index.js
function destroy(){
    
    // Destroy reactive functions.
    reactiveFunctions.forEach(invoke("destroy"));
    if(configurationReactiveFunction){
      configurationReactiveFunction.destroy();
    }
    
    // Destroy properties (removes listeners).
    Object.keys(model).forEach(function (propertyName){
      var property = model[propertyName];
      if(property.destroy){
        property.destroy();
      }
    });

    // Release references.
    reactiveFunctions = undefined;
    configurationReactiveFunction = undefined;
  }
function destroy(){
    
    // Destroy reactive functions.
    reactiveFunctions.forEach(invoke("destroy"));
    if(configurationReactiveFunction){
      configurationReactiveFunction.destroy();
    }
    
    // Destroy properties (removes listeners).
    Object.keys(model).forEach(function (propertyName){
      var property = model[propertyName];
      if(property.destroy){
        property.destroy();
      }
    });

    // Release references.
    reactiveFunctions = undefined;
    configurationReactiveFunction = undefined;
  }
function destroy ( ) { // Destroy reactive functions. reactiveFunctions . forEach ( invoke ( "destroy" ) ) ; if ( configurationReactiveFunction ) { configurationReactiveFunction . destroy ( ) ; } // Destroy properties (removes listeners). Object . keys ( model ) . forEach ( function ( propertyName ) { var property = model [ propertyName ] ; if ( property . destroy ) { property . destroy ( ) ; } } ) ; // Release references. reactiveFunctions = undefined ; configurationReactiveFunction = undefined ; }
Destroys all reactive functions and properties that have been added to the model.
Destroys all reactive functions and properties that have been added to the model .