So I'm new to Firebase as well as Javascript. So I have no clue how I'm getting this error:
Uncaught RangeError: Maximum call stack size exceeded.
From this code:
var player1Ref = new Firebase('https://myref.firebaseio.com/game/players/player1')
player1Ref.on('child', function (snapshot){
var chips = snapshot.val().chips;
var name = snapshot.val().name;
$('#player1name').html(name);
$('#player1chips').html(chips);
})
I dont know if this is a Firebase issue, a JQuery / Zepto issue (I use Zurb's Foundation and they use Zepto), or something else. I've never encountered a stack overflow issue before so I dont know how to fix it (yet).
Tips?
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
$('#joinGame').foundation('reveal', 'close');
if ($('#playerOneSelect').click()) {
$("#playerOne").show();
} else if ($("#playerTwoSelect").click()) {
$("#playerTwo").show();
};
});
$(".join").click(function(){
$('#joinGame').foundation('reveal', 'close');
});
$("#playerOneSelect").click(function(){
$("#playerOne").show();
})
$("#playerTwoSelect").click(function(){
$("#playerTwo").show();
})