[jQuery] Re: Question about function objects vs object literals?

2008-06-30 Thread Michael Geary
> Here is what is throwing you off: When you take a reference > to a function such as the "t.display" in your method A, > you're not getting a "bound method", but a simple reference > to the function itself. By way of contrast, in Python you would get a bound method like your code is expecting

[jQuery] Re: Question about function objects vs object literals?

2008-06-30 Thread Michael Geary
Here is what is throwing you off: When you take a reference to a function such as the "t.display" in your method A, you're not getting a "bound method", but a simple reference to the function itself. IOW, when "t.display" is called later, it won't be called a method of the "t" object (as it would

[jQuery] Re: Question about function objects vs object literals?

2008-06-30 Thread markus.staab
Hi, Method B & C work, because you call the function and don't pass it to blur(). Regards, Markus On 30 Jun., 20:18, Oltmans <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm stuck in a situation where I need help. Any help will be highly > appreciated. I've created an object, after creating the obj

[jQuery] Re: Question about function objects vs object literals?

2008-06-30 Thread spicyj
No guarantees, but this might work (using code from http://www.hedgerwow.com/360/dhtml/ie6_memory_leak_fix/): http://pastie.org/private/rarlluuasfvmmtqkgvca On Jun 30, 12:18 pm, Oltmans <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm stuck in a situation where I need help. Any help will be highly >