Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove duplicate call to $(document).ready #42
I think the problem come from elsewhere.
$(document).ready(prepareTabs); $(document).ready(prepareTables); $(document).ready(prepareMenu);
As you said, the problem is this callback is called twice
This seemed to cause a bug for some users who could not reach the checkout page. This duplicate call would register the 'updateCart' event listener twice, therefore making 2 ajax post requests.