On Thu, Jul 30, 2009 at 3:51 PM, #micah<micah.a.sm...@gmail.com> wrote:
>
> Would you recommend using the .bind(type, data, fn) function to
> achieve what i'm trying to do? Or could you steer me in the right
> direction? I'm surprised that the .click() works in that manner. How
> would you dynamically assign that function to that button?

I believe you're encountering a disconnect between how Javascript (not
Jquery) works and what you expect (likely based off of other
programming languages).

When inside a function that is contained in an object (a "method"),
"this" does NOT refer to the object your function is part of.  If you
expect it to you will encounter much confusion.

-- 
Brett Ritter / SwiftOne
swift...@swiftone.org

Reply via email to