Skip to content

Map events support - #29

Open
sprocketc wants to merge 3 commits into
asennikov:masterfrom
sprocketc:events
Open

Map events support#29
sprocketc wants to merge 3 commits into
asennikov:masterfrom
sprocketc:events

Conversation

@sprocketc

Copy link
Copy Markdown
Contributor

If you are OK with the approach, i will add some tests.

Comment thread addon/components/g-map.js

if (isPresent(map)) {
google.maps.event.addListener(map, event, () => {
const action = this.get(event);

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.

shouldn't it be this.get(attrs.${event}); for closure actions? (I'm not sure, just asking)

@asennikov

Copy link
Copy Markdown
Owner

I do like this approach, so you can add those tests and I'm ready to merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants