Created
April 23, 2014 01:56
-
-
Save 1dolinski/11200431 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Scenario 1 | |
// run these sequentially, the google map closes | |
google.maps.event.addDomListener(window, 'load', initialize); | |
google.maps.event.clearInstanceListeners(window, 'load'); | |
// Scenario 2 | |
function run() { | |
google.maps.event.clearInstanceListeners(window, 'load'); | |
} | |
google.maps.event.addDomListener(window, 'load', initialize); | |
// open the window and then in the console run: | |
run(); | |
#=> undefined | |
// but in this case the map doesn't disapear | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment