windowKeydownHandler: function(e) { if (e.which === 27) { ad.toggleCityselect(null, 'hide'); $(window).unbind('keydown', this.windowKeydownHandler); } } }; №50 $(document).ready(function() { ad.init(); });