Do not save defaults for containers

This commit is contained in:
Tautvidas Sipavičius
2018-03-22 18:36:54 +02:00
committed by pavel-mailpoet
parent eb4d2ab829
commit 0d514a8084
2 changed files with 9 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ define([
blocks: new BlockCollection()
}, App.getConfig().get('blockDefaults.container'));
},
_updateDefaults: function updateDefaults() {},
validate: function () {
// Recursively propagate validation checks to blocks in the tree
var invalidBlock = this.get('blocks').find(function (block) { return !block.isValid(); });