Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/Elements/Paragraph.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,16 @@ function Paragraph:New(Config)
return Paragraph
end

function Paragraph:Update(OldParagraph, Title, Content)
if OldParagraph.Title ~= Title then
OldParagraph.Title = Title
end

if OldParagraph.Content ~= Content then
OldParagraph.Content = Content
end

return Paragraph
end

return Paragraph