Skip to content

Commit

Permalink
Add two more callbacks, so we can listen to all changes to all DOs, a…
Browse files Browse the repository at this point in the history
…nd for changes to a specific key across all DOs
  • Loading branch information
tekkub committed May 13, 2008
1 parent 8903765 commit caa52c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LibDataBroker-1.1/LibDataBroker-1.1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ local domt = {
attributestorage[self][key] = value
local name = namestorage[self]
if not name then return end
lib.callbacks:Fire("LibDataBroker_AttributeChanged", name, key, value)
lib.callbacks:Fire("LibDataBroker_AttributeChanged_"..name, name, key, value)
lib.callbacks:Fire("LibDataBroker_AttributeChanged_"..name.."_"..key, name, key, value)
lib.callbacks:Fire("LibDataBroker_AttributeChanged__"..key, name, key, value)
end,
__index = function(self, key)
return attributestorage[self] and attributestorage[self][key]
Expand Down

0 comments on commit caa52c9

Please sign in to comment.