Skip to content

Commit 09cf799

Browse files
Merge pull request #16 from jupyter-server/dirty
Allow to set dirty whatever the previous value
2 parents bdb1757 + b192ef3 commit 09cf799

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

jupyter_ydoc/ydoc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ def dirty(self) -> None:
3535

3636
@dirty.setter
3737
def dirty(self, value: bool) -> None:
38-
if self.dirty != value:
39-
with self._ydoc.begin_transaction() as t:
40-
self._ystate.set(t, "dirty", value)
38+
with self._ydoc.begin_transaction() as t:
39+
self._ystate.set(t, "dirty", value)
4140

4241
def observe(self, callback):
4342
raise RuntimeError("Y document observe not implemented")

0 commit comments

Comments
 (0)