Created
November 5, 2012 17:10
-
-
Save drewtang/4018374 to your computer and use it in GitHub Desktop.
double callback
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src='https://assets.yammer.com/platform/yam.js' data-app-id="EojZmPyBpg0kPaTCDAanw"></script> | |
<script> | |
/* Note: Using yam.config instead of data-app-id also causes duplicate callbacks | |
yam.config({ | |
appId: 'EojZmPyBpg0kPaTCDAanw' | |
}); | |
*/ | |
yam.getLoginStatus(getLogin); | |
var ctr = 1; | |
function getLogin(response) { | |
document.body.innerHTML += '<h2>callback #' + ctr++ + '</h2>'; | |
} | |
</script> | |
</head> | |
<body> | |
<h1>How many callbacks?</h1><br/> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment