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

The listener is traversing backwards #53

Open
gufengchangdao opened this issue Dec 4, 2022 · 1 comment
Open

The listener is traversing backwards #53

gufengchangdao opened this issue Dec 4, 2022 · 1 comment

Comments

@gufengchangdao
Copy link

I see a lot of listeners in the source code traversal are flashback, and each interval is 2, why is this ?
such as:

Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
	if (listeners[i] == PageListener.class) {
		_pageEvent = new PageEvent(source, id);
		((PageListener) listeners[i + 1]).pageEventFired(_pageEvent);
	}
}
@gufengchangdao
Copy link
Author

sorry ,reading the source code, I already know

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

No branches or pull requests

1 participant