some syntactic fixes
This commit is contained in:
parent
e287e2414a
commit
5301b2a5fa
|
@ -11,7 +11,7 @@ class Message:
|
|||
|
||||
class ClickMessage(Message):
|
||||
def __init__(self, event):
|
||||
event.stopPropagation();
|
||||
event.stopPropagation()
|
||||
|
||||
|
||||
def msg(message_class, params):
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
class Editable:
|
||||
def make_copy(self):
|
||||
# makes an internal copy of self
|
||||
# delete old copy
|
||||
if hasattr(self, "_copy"):
|
||||
if self._copy is not None:
|
||||
|
@ -9,6 +10,7 @@ class Editable:
|
|||
self._copy = JSON.parse(JSON.stringify(self))
|
||||
|
||||
def copy(self):
|
||||
# return internal copy of self
|
||||
# check if even initialized
|
||||
if hasattr(self, "_copy"):
|
||||
return self._copy
|
||||
|
|
Loading…
Reference in New Issue
Block a user