> // error: f.apply is not a function - jquery.js (line 1166)
> $(function(){
>       $(document.createElement('embed'));
> });

Looks like a Firefox bug, I don't understand why it's still unfixed after so
long:

https://bugzilla.mozilla.org/show_bug.cgi?id=268945
https://bugzilla.mozilla.org/show_bug.cgi?id=296858
https://bugzilla.mozilla.org/show_bug.cgi?id=346789

Since the embed element is erroneously reported as a function, jQuery thinks
$(document.createElement('embed')) is another call to .ready() with the
embed element being the function to call. That makes ready method's f.apply
die because FINALLY Firefox wakes up and notices that it isn't a function.

A workaround might be to use $("<embed />") but I haven't tried it and there
may be other implications further into jQuery. Lying about being a function
is serious business!



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to