diff --git a/src/commands/view/SelectComponent.js b/src/commands/view/SelectComponent.js index e94ff6d5b..3c9631258 100644 --- a/src/commands/view/SelectComponent.js +++ b/src/commands/view/SelectComponent.js @@ -343,12 +343,10 @@ module.exports = { if (editor && resizable) { - console.log('Init resize on ', model, options); options = { - onStart: function(e, opts) { + onStart(e, opts) { toggleBodyClass('addClass', e, opts); modelToStyle = em.get('StyleManager').getModelToStyle(model); - console.log(modelToStyle, 'model', model); showOffsets = 0; }, // Update all positioned elements (eg. component toolbar) diff --git a/src/style_manager/view/SectorsView.js b/src/style_manager/view/SectorsView.js index 1c43594c0..aa852ed56 100644 --- a/src/style_manager/view/SectorsView.js +++ b/src/style_manager/view/SectorsView.js @@ -65,7 +65,9 @@ module.exports = Backbone.View.extend({ iContainer = cssC.add(valid, state, mediaText); iContainer.set('style', el.get('style')); el.set('style', {}); - } else { + } + + if (!iContainer) { // In this case it's just a Component without any valid selector pt.model = el; pt.trigger('update');