Ok, apparently, you cannot unlock the ready handler, to be precise, you cannot when ready () is used, but you can use bind ("ready", handler), but instead
$(document).ready(handler);
using
$(document).bind('ready', handler);
then whenever you want to modify an existing event handler, use:
$(document).unbind('ready', handler);
or
$(document).unbind('ready');
as I recently found, you can add an event namespace :) only to delete ready-made events in this namespace (I looked at the jplayer code) as follows:
var GD_EVENT_NAMESPACE = ".GrelaDesign"; $document.bind('ready' + GD_EVENT_NAMESPACE, function(){ alert('ready'); });
Best wishes
ps I searched extensively before asking here :) and shortly after I asked, I found the answer :-)
source share