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

Typescript conversion of the internals of L.Evented #11276

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

dennisfrancis
Copy link
Member

  • Resolves: #
  • Target version: master

Summary

Typescript conversion of the internals of L.Evented

TODO

  • Mocha tests for Evented class.

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@dennisfrancis dennisfrancis marked this pull request as draft March 6, 2025 07:19
@dennisfrancis dennisfrancis force-pushed the private/dennisf/typescript branch from 2ef849c to 5297db8 Compare March 7, 2025 04:23
@dennisfrancis dennisfrancis reopened this Mar 7, 2025
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: Ibbea012807716d481962e2354b04375cfe82127a
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I85ea2261a7557d5d5dbe59a642a1267fe7c4c4ee
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: Ica4ac6c9f38334263c45182e16cd52bdb7277f03
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I4b358324f708b04dea4d5c1c017537d12fc319ee
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: Ic64a07d4d62e7a0967b58aaff6865ad31ee813e6
when we fully get rid of L.Evented or in a fully typed world like mocha
tests.

Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I802766adf4d53312da11573ed1108c1df155802e
both foreign context events and self context event containers are empty.

Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I138fe462f4bd130a52912801d5b890f3b1460f89
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: Ic89b5e118441df02f6447580cd8ba5d38d57f7a9
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: Idab511f63d606024c85494bb73e79826778dfa5d
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I46155ac34dcc36f88b0ff5ac04a46607e2d0ad10
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I8b0b6e4bc67410eb0d88454cf7e0a6326c62c2dc
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I184df2f8c1b6902f2b2f58d429212f90ded35e2b
... call-types and context-types.

Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I5364af9c92cf58a41dcb36691be5d300ed862c93
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: Ie2c715290bf5ca1fb889fa0855ec5117dd42f312
@dennisfrancis dennisfrancis force-pushed the private/dennisf/typescript branch from 0c3b162 to 1ba3558 Compare March 8, 2025 13:17
@dennisfrancis dennisfrancis marked this pull request as ready for review March 8, 2025 13:19
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: If85e88487eb2aeeff9eaf45da51a35528d1b69e8
@@ -0,0 +1,69 @@
/// <reference path="../../src/app/BaseClass.ts"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

MPL license header ? =)

Copy link
Contributor

@mmeeks mmeeks left a comment

Choose a reason for hiding this comment

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

Would need a JS person to fully review this - but looks great Dennis =) a couple of tweaks in there would be helpful I think.

}

// attach listener
private _on(type: string, fn: CEventListener, context: any): void {
Copy link
Contributor

Choose a reason for hiding this comment

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

the comment is a good sign this function is misnamed =) can we have attachListener(...) instead ? =)

}
}

private _off(type: string, fn: CEventListener, context: any): void {
Copy link
Contributor

Choose a reason for hiding this comment

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

and I guess removeListener ? =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants