Skip to content

[hump.signal] stopping signal propagation #97

Description

@pcornier

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions