I have the following javascript code:
function toggleHiddenOps(dir, tour = false){
// do stuff
}
I noticed it was breaking in Chrome and IE (seems to work in FF 27). If I change the above to:
function toggleHiddenOps(dir, tour){
// do stuff
}
It resolves the problem. Is there some issue with declaring variables like this in JS? Or perhaps my problem actually lies elsewhere?
Thanks.