document weak reference by `notify-on-change'

This commit is contained in:
Matthew Flatt 2011-01-07 13:02:09 -07:00
parent be6ba896e0
commit a5660f38eb

View File

@ -126,7 +126,8 @@ The @scheme[like-style] style must be in this style list, otherwise
@defmethod[(notify-on-change [f ((or/c (is-a?/c style<%>) #f) . -> . any)])
any/c]{
Attaches a callback to the style list. The callback is invoked
Attaches a callback to the style list, retaining the callback only weakly (in
the sense of @racket[make-weak-box]). The callback is invoked
whenever a style is modified.
Often, a change in one style will trigger a change in several other