Skip to content

Commit

Permalink
Update morphic.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoenig committed Jun 4, 2024
1 parent 609f5e7 commit 4bcb864
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions morphic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
written by Jens Mönig
[email protected]

Copyright (C) 2010-2022 by Jens Mönig
Copyright (C) 2010-2024 by Jens Mönig

This documentation last changed: November 22
This documentation last changed: June 04, 2024

This file is part of Snap!.

Expand Down Expand Up @@ -50,6 +50,7 @@
(f) resize event
(g) combined mouse-keyboard events
(h) text editing events
(i) indicating unsaved changes
(4) stepping
(5) creating new kinds of morphs
(a) drawing the shape
Expand Down Expand Up @@ -857,6 +858,19 @@
single-line text elements can hold them apart.


(i) indicating unsaved changes
------------------------------
Before closing a browser tab with a Morphic world any top level morph
can signal unsaved changes by implementing a

hasUnsavedChanges()

method, which returns a Boolean value indicating whether it is safe to
destroy. If any top level morph indicates unsaved changes the browser
pops up a dialog box warning about unsaved changes and prompting for user
confirmation to close it.


(4) stepping
------------
Stepping is what makes Morphic "magical". Two properties control
Expand Down

0 comments on commit 4bcb864

Please sign in to comment.