Consider I have a simple plugin, e.g.

jQuery.example = function(name) {

        sayHello = function(str) {
            alert("jQuery.example.sayHello: " + str);
        };

    sayHello(name);
};


at sometime later, I would want to override the original sayHello
method(), so I add,


jQuery.example.sayHello = function(str) {
         alert("jQuery.example.sayHello(Overrided): " + str);
};

But this does not work.

Any idea?

Thanks.

Reply via email to