Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventManager::removeEventListener: fixed emptying list of sorted events #87

Merged
merged 1 commit into from
Nov 28, 2015
Merged

EventManager::removeEventListener: fixed emptying list of sorted events #87

merged 1 commit into from
Nov 28, 2015

Conversation

matej21
Copy link
Contributor

@matej21 matej21 commented Nov 25, 2015

closes #80, #81

$this->sorted[$eventName] = array();
} else {
// otherwise it needs to be sorted again
unset($this->sorted[$eventName]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it? If it's empty then it should return an empty array, no?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see now :)

fprochazka added a commit that referenced this pull request Nov 28, 2015
EventManager::removeEventListener: fixed emptying list of sorted events
@fprochazka fprochazka merged commit ab9fcb1 into Kdyby:master Nov 28, 2015
@fprochazka
Copy link
Member

Thank you!

@matej21
Copy link
Contributor Author

matej21 commented Nov 28, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue when manually removing subscriber and have multiple subscribers on the same event
2 participants