eschwartz / backbone.googlemaps

A Backbone JS extension for interacting with the Google Maps API (v3.10)
MIT License
139 stars 55 forks source link

Scope "Global" Events to Backbone.GoogleMaps #14

Closed mcordingley closed 10 years ago

mcordingley commented 10 years ago

With the current implementation, events that are specific to selected/deselected locations are being put out into the Backbone.Events object, which means that this library is leaking a bit outside of its containment.

I've made the GoogleMaps object itself into an event bus and updated the global events to be scoped to just the library.

eschwartz commented 10 years ago

Good call -- thanks for the pull request!

See b4f9e396b0c0fce200d958398892c999b0dd3dff