create-item: push linkable events.
push linkable object-added/removed events.
This commit is contained in:

committed by
Julian Bouzas

parent
3c2c954107
commit
aefc50da3d
@@ -123,6 +123,11 @@ AsyncEventHook {
|
||||
Log.info(item, "activated item for node " .. tostring(id))
|
||||
item:register ()
|
||||
transition:advance()
|
||||
|
||||
props = {}
|
||||
props["event.subject.type"] = "linkable"
|
||||
EventDispatcher.push_event { type = "object-added",
|
||||
priority = 50, properties = props, subject = item}
|
||||
end,
|
||||
},
|
||||
},
|
||||
@@ -156,5 +161,10 @@ SimpleEventHook {
|
||||
items[id]:remove ()
|
||||
items[id] = nil
|
||||
end
|
||||
|
||||
props = {}
|
||||
props["event.subject.type"] = "linkable"
|
||||
EventDispatcher.push_event { type = "object-removed",
|
||||
priority = 50, properties = props, subject = item}
|
||||
end
|
||||
}:register()
|
||||
|
Reference in New Issue
Block a user