diff --git a/app/js/app-menu.js b/app/js/app-menu.js index e2ebeb6c..6bd75866 100644 --- a/app/js/app-menu.js +++ b/app/js/app-menu.js @@ -841,10 +841,10 @@ module.exports = function() { var bgObj = chiseInstance.elementUtilities.getBackgroundImageObjs(cy.nodes()); chiseInstance.removeBackgroundImage(cy.nodes(), bgObj); - // if(nodeClass in chiseInstance.elementUtilities.getDefaultProperties()){ - // chiseInstance.undoRedoActionFunctions.setDefaultProperty({class: nodeClass, name: 'background-image', value: ''}); - // chiseInstance.undoRedoActionFunctions.setDefaultProperty({class: nodeClass, name: 'background-color', value: classBgColor}); - // } + if(nodeClass in chiseInstance.elementUtilities.getDefaultProperties()){ + chiseInstance.undoRedoActionFunctions.setDefaultProperty({class: nodeClass, name: 'background-image', value: ''}); + chiseInstance.undoRedoActionFunctions.setDefaultProperty({class: nodeClass, name: 'background-color', value: classBgColor}); + } } }