core: change notify implementation to save notifications

Fixes #453 and makes it possible to refer to these notifications later.
This commit is contained in:
Roman Khimov 2019-11-13 16:55:20 +03:00
parent 9134cc1c37
commit 5ce269c035
7 changed files with 128 additions and 15 deletions

View file

@ -59,6 +59,11 @@ func (e *Element) Prev() *Element {
return nil
}
// Item returns StackItem contained in the element.
func (e *Element) Item() StackItem {
return e.value
}
// Value returns value of the StackItem contained in the element.
func (e *Element) Value() interface{} {
return e.value.Value()