Don't call on-dispose in non-reactive deref for now

This commit is contained in:
Dan Holmsand 2015-09-26 18:00:30 +02:00
parent f940ac3f38
commit 5a23bcaad5
1 changed files with 1 additions and 4 deletions

View File

@ -438,10 +438,7 @@
(set! state newstate)
(when (and (some? watches)
(not= oldstate newstate))
(-notify-watches this oldstate newstate))))
(when (and (some? on-dispose)
(nil? watches))
(on-dispose state)))
(-notify-watches this oldstate newstate)))))
(do
(notify-deref-watcher! this)
(when-not (== dirtyness clean)