It's might be not quite clear, but everything except bangs (!) is a pure data with no state.
For example, we have 3 state configurations - initial, captured and dragging. We need to listen a bunch of global events when dragging. When we are done with dragging, we just return an initial state. That's enough to detach all global listeners and do all cleanup... среда, 3 сентября 2014 г., 22:06:56 UTC+4 пользователь Eldar Gabdullin написал: > > Code - > https://github.com/dar-clojure/ui/blob/master/examples/sortable/main.cljs > Demo - https://dar-clojure.github.io/ui/files/sortable.html > > You can feed it 1000 items and it's still alive > <https://dar-clojure.github.io/ui/files/sortable1000.html>. > > What do you think? :) > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.