Vote count:
0
I'm tryng to figure out how a certain webpage works, at a certain point while debugging it i understand everything looking at Call Stack in chrome to know where a function is being called from , untill get to a function that is in one of the javascript files the web uses and the Call Stack doesn't help me any more. I can't find out where it's called from
Don't have any problem untill here:
<script>
(function($){
$(document).bind('FBSDKLoaded', function() {
//...
});
})(jQuery);
//...
window.fbAsyncInit = function() {
FB.init({appId: config.fb_appid, status: true, cookie: true, xfbml: true});
$(document).trigger('FBSDKLoaded');
};//<=====<=====<=====<=====HERE the brakepoint(debugger)
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
As you probably know trigger('FBSDKLoaded')
makes $(document).bind('FBSDKLoaded', function() {});
to execute so the debugger end up there after executing $(document).bind('FBSDKLoaded', function() {});
. At this point the Call Stack says:
window.fbAsyncInit ((index):784)
window.FB.u.__wrapper (all.js:82)
(anonymous function) (all.js:120)
After passing these three points with the debugger leds me to:
gplyer.prototype.setPlylist = function(obj, pl)
{
var self = this;
$.post('/player/', obj, function(data)
{
self.playlist = $.extend({}, self.playlist, data.songlist);//<=====TO HERE
//...
}, 'json');
}
At this point the Call Stack says:
(anonymous function) (player.js:864)
c (jquery.js:1)
p.fireWith (jquery.js:1)
k (jquery.js:3)
send.r (jquery.js:3)
And i don't know where the call comes from. Thanks for any help.
Aucun commentaire:
Enregistrer un commentaire