Skip to content
Merged
Prev Previous commit
Next Next commit
Removed extra console logging.
  • Loading branch information
jbsaff committed May 1, 2015
commit 0d6f417f1039840789205d769e2eb36583a956ee
2 changes: 0 additions & 2 deletions src/directives/schema-validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,10 @@ angular.module('schemaForm').directive('schemaValidate', ['sfValidator', 'sfSele
if (destroyStrategy === 'retain') {
return; // Valid option to avoid destroying data in the model.
}
console.log('result %s', destroyStrategy);

destroyUsingStrategy(destroyStrategy);

function destroyUsingStrategy(strategy) {
console.log('Destroy called with %s', strategy);
var strategyIsDefined = (strategy === null || strategy === '' || strategy === undefined);
if (!strategyIsDefined){
strategy = DEFAULT_DESTROY_STRATEGY;
Expand Down