Hy

(function($){

        $.myPlugin = function(){

             holla: function(){
                alert('holla');
            }
        }
        $.myPlugin.hello = function(){
          alert('hello von Plugin');
        }
})(jQuery);

// Works finde:
$.myPlugin.hello();

// It does not work. Why?
$.myPlugin.holla();


Is there a posibility to write a method in:

... snip
$.myPlugin = function(){

             // Write methode here
            }
        }
...snip

So that
  $.myPlugin.holla();
will work?


Thanks!



Reply via email to