Skip to content

Commit

Permalink
Remove remaining JavaScript related to the GoogleMap API (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasugaijin authored Mar 10, 2024
1 parent b7268e4 commit 5763876
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 61 deletions.
9 changes: 0 additions & 9 deletions app/javascript/controllers/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,4 @@ const application = Application.start()
application.debug = false
window.Stimulus = application

// google map script tag calls this method via callback param when finished loading
// this creates a custom event that is being listened to in the view to build map
// without this google-map controller JS runs before google is available and fails
window.initMap = () => {
console.log('initMap was called');
const event = new Event("MapLoaded", {"bubbles":true, "cancelable":false});
window.dispatchEvent(event)
}

export { application }
52 changes: 0 additions & 52 deletions app/javascript/controllers/google_map_controller.js

This file was deleted.

0 comments on commit 5763876

Please sign in to comment.