Would be great to have a way to stop the signal propagation:
function Registry:emit(s, ...)
for f in pairs(self[s]) do
if f(...) == false then return end
end
end
so we could stop the signal using:
Signal.register('mousepressed', function(x, y)
...
return false
end)