own plugin - javascript error
Hi,
I wrote a small plugin to create a fat dropdown menu. all works fine, although an js error occured. I hope anyone could help :)
Here a part of the code:
- jQuery.fn.eFatMenu = function(params) {
- var tthis = jQuery(this);
- var newMethods = {
initiate_global: function() {
- ...
- },
- ....
- };
- jQuery.each(newMethods, function(i) {
jQuery.fn[i] = this;
});
return tthis.each(function() {
tthis = $(this);
});
};
$( function() {
$().eFatMenu().initiate_global();
});
So, as I said all works fine. But I get an error:
- $().eFatMenu is not a function
- $().eFatMenu().initiate_global();
Thanks for your help.
Best Regards
skhamburg