I’ve come across a code snippet that i am trying to understand. I did not find it anywhere. The code still works fine. Its about the .bind function of jQuery:
$(new Object()).bind()
what does the bind function of jQuery do with ” new Object() “. Can someone elaborate?! Thanks.
I’ve got it solved. For someone who is interested-> There are two parts to it:
So, everybody knows that “$(document).ready(function(){“ gets executed first – but – in this way only when Part2 condition is TRUE than it triggers the “pressMe” event defined in Part1 which ultimately listens to the click event of the #refButton Id.
But it still remains a mistery to me how the empty new Object() – disables the “$(document).ready(function(){“ functionality till the trigger is activated.
But thanks to all who answered.