Skip to content

Commit

Permalink
remove the undo methond for 1228 issue (Moonshine-IDE/Moonshine-IDE#1009
Browse files Browse the repository at this point in the history
)
  • Loading branch information
feather812002 committed Feb 27, 2024
1 parent a4720e7 commit 5d17d62
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions src/view/suportClasses/PropertyChangeReference.as
Original file line number Diff line number Diff line change
Expand Up @@ -156,21 +156,29 @@ package view.suportClasses

protected function changeItem(value:*, editor:VisualEditor):void
{
//https://github.com/Moonshine-IDE/Moonshine-IDE/issues/1228#issuecomment-1967145131
//Remove the following code Because Joel don't want to support the feature of changing multiple fields at once
//More details in the link above
// against assigning multiple field changes
if (value is Array)
{
for each (var i:Object in value)
{
fieldClass[i.field] = i.value;
}
}
else if (fieldName)
{
// assigning single field change
fieldClass[fieldName] = value;
}
// if (value is Array)
// {
// for each (var i:Object in value)
// {
// if((fieldClass as Object).hasOwnProperty(i.field)){
// fieldClass[i.field] = i.value;
// }
// }
// }
// else if (fieldName)
// {
// // assigning single field change
// if((fieldClass as Object).hasOwnProperty(fieldName)){
// fieldClass[fieldName] = value;
// }

// }

editor.componentsOrganizer.updateItemWithPropertyChanges(this, true);
// editor.componentsOrganizer.updateItemWithPropertyChanges(this, true);
}
}
}

0 comments on commit 5d17d62

Please sign in to comment.