vocabs: only notify vocab-observers if we are creating a new vocab.
parent
8f9bd87693
commit
019080d82d
|
@ -91,9 +91,8 @@ GENERIC: vocab-changed ( vocab obj -- )
|
|||
vocab-observers get [ vocab-changed ] with each ;
|
||||
|
||||
: create-vocab ( name -- vocab )
|
||||
check-vocab-name
|
||||
dictionary get [ <vocab> ] cache
|
||||
dup notify-vocab-observers ;
|
||||
check-vocab-name dictionary get
|
||||
[ <vocab> dup notify-vocab-observers ] cache ;
|
||||
|
||||
ERROR: no-vocab name ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue