I am using jQuery version 1.4.1. I try to attach resize & click events this way but it is not working.
var $els = [];
$els.window = $(window);
$els.window.bind('resize', getNewWindowCorner());
$els.toggleUPSButtons.bind('click', toggleUPSOverlay());
Help would be appreciated. Thanks.
If you are using $els.window.bind('resize', getNewWindowCorner());
function executed immediately,so remove bracket
$els.window.bind('resize', getNewWindowCorner);
$els.toggleUPSButtons.bind('click', toggleUPSOverlay);