Skip to content

Conversation

@icewind1991
Copy link
Contributor

New hook system that allows better scoping of events, main advantage is better automated tests for classes using this system compared to OC_Hooks.

Not meant to replace the existing uses of OC_Hooks, instead meant for new classes that want to provide hooks

More info: https://gist.github.com/icewind1991/1e315e6e75c106406405

Required as part of the improved filesystem api I'm planning.

cc @MTGap @Raydiation @karlitschek @DeepDiver1975

Copy link
Contributor

Choose a reason for hiding this comment

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

Your gist says removeListener for this function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, typo

@MTGap
Copy link
Contributor

MTGap commented May 9, 2013

Do you want to move the old class into legacy in this pull request as well?

@MTGap
Copy link
Contributor

MTGap commented May 9, 2013

👍 All tests passed.

@icewind1991
Copy link
Contributor Author

@DeepDiver1975
Copy link
Member

🍻 for unit tests

@DeepDiver1975
Copy link
Member

@icewind1991 are you planing to push your gist to the dev docs?

@DeepDiver1975
Copy link
Member

👍

DeepDiver1975 added a commit that referenced this pull request May 21, 2013
@DeepDiver1975 DeepDiver1975 merged commit e2444ec into master May 21, 2013
@DeepDiver1975 DeepDiver1975 deleted the hooks branch May 21, 2013 22:21
@lock lock bot locked as resolved and limited conversation to collaborators Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants