This acts funny ONLY in Firefox, no Firebug warning

This acts funny ONLY in Firefox, no Firebug warning

It all happens inside a wordpress plugin.

jQuery is loaded peacefully and correctly by the blog pages;

a separate script is loaded as well;

a javascript function in the file is called.

Everything goes smoothly in IE and GoogleChrome, the function is executed fine.

In Firefox 3 (tested with NO addons) the function silently stops, without giving ANY warning in Firebug.

By inserting alerts here and there in the function I figured out that it stops when jQuery is first called.

My stupid workaround: to add at the beginning of the file, before the function begins, a empty call to jQuery just for the road.

normally the file would begin like this:

function blah(variable, variable){
   
   jQuery(document).ready
   (
      function($){
         
etc ...


but to make it work in FF it has to begin like this:

jQuery(document).ready();

function blah(variable, variable){
   
   jQuery(document).ready
   (
      function($){
         
etc ...


Do you guys have any idea why this happens and what it the elegant right way to solve it?