So I have this code:
var bindAll; bindAll = function () { $(\'#somediv\').bind(\'mouseover\', function(){do something}); }; var init; init = function () {
jQuery ready expects a handler, not a function call.
// $(document).ready(init()); <-- Not working $(document).ready(init); <-- Working!
Working example at: http://jsfiddle.net/marcosfromero/Qwghb/