You may find this article interesting...

http://osteele.com/archives/2006/04/javascript-memoization

On Mar 2, 11:50 pm, howa <[EMAIL PROTECTED]> wrote:
> 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