-
Notifications
You must be signed in to change notification settings - Fork 771
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
base: master
Are you sure you want to change the base?
Conversation
2ef849c
to
5297db8
Compare
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
0c3b162
to
1ba3558
Compare
Signed-off-by: Dennis Francis <[email protected]> Change-Id: If85e88487eb2aeeff9eaf45da51a35528d1b69e8
@@ -0,0 +1,69 @@ | |||
/// <reference path="../../src/app/BaseClass.ts"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MPL license header ? =)
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and I guess removeListener ? =)
Summary
Typescript conversion of the internals of L.Evented
TODO
Checklist
make prettier-write
and formatted the code.make check
make run
and manually verified that everything looks okay