From 25612fcafcdccb96b0752c57f728560580ab3c99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Umut=20Utku=20ER=C5=9EAH=C4=B0NCE?= Date: Thu, 4 Jul 2024 15:30:29 +0300 Subject: [PATCH] old code uncommented #726 --- app/js/app-menu.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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}); + } } }