Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

feat(infoWindow): emit event when closed#317

Closed
alexweber wants to merge 3 commits into
sebholstein:masterfrom
alexweber:feature-info-window-close-event-306
Closed

feat(infoWindow): emit event when closed#317
alexweber wants to merge 3 commits into
sebholstein:masterfrom
alexweber:feature-info-window-close-event-306

Conversation

@alexweber

Copy link
Copy Markdown
Contributor

initial stab at #306

@sebholstein

Copy link
Copy Markdown
Owner

@alexweber thanks for the PR!
Can you format your code with gulp clang:format? Thanks

OnChanges {
/**
* Emits an event when the info window is closed.
*/

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Event names should be in present tense, so infoWindowClose

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@SebastianM Thanks, done

@alexweber

Copy link
Copy Markdown
Contributor Author

@SebastianM I've ran the code through the formatter and some other files also got picked up, I believe I have this in another PR too but since this is the one you're looking at happy to get it in here.

Thanks!

@alexweber

Copy link
Copy Markdown
Contributor Author

@SebastianM Emitting the info Window itself in this version, we gotta emit a value as far as I know... let me know, thanks!

* Emits an event when the info window is closed.
*/
@Output() infoWindowClose = new EventEmitter();
@Output() infoWindowClose: EventEmitter<SebmGoogleMapInfoWindow> = new EventEmitter();

@sebholstein sebholstein May 17, 2016

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

you can use EventEmitter<void> here, so you don't have to emit anything here

@sebholstein

Copy link
Copy Markdown
Owner

added one last comment. can you address this comment and squash your commit into one. than im happy to merge it. thanks man!

sebholstein pushed a commit that referenced this pull request May 19, 2016
@sebholstein

Copy link
Copy Markdown
Owner

@alexweber made the changes really quick - it's now merge. thank you

@alexweber

Copy link
Copy Markdown
Contributor Author

@SebastianM Awesome thanks you beat me to it :)

@alexweber alexweber deleted the feature-info-window-close-event-306 branch May 19, 2016 19:46
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.

2 participants