From: Sudara <markswilli...@gmail.com>
Date: Thu, 27 Mar 2008 10:30:05 -0700 (PDT)
Local: Thurs 27 Mar 2008 17:30
Subject: delegating in jquery: problems
Hey there!
I'm SUPER excited about event delegation, and I'm giving it a whirl
So, I've got something simmering like so
Track = $.klass({
onclick: $.delegate({
// then, i define toggleOptions and togglePlay and so on...
});
Basically, I'm creating a Track behavior. A track has some links in
it, including .track_link and .play_link. Ok, but I get stuck: 1. "e" doesn't seem to be the event, it seems to be the target - is
2. In these two functions that I'm calling (like toggleOptions) if I
return this.toggleOptions(e)
with toggleOptions or even manually return false, in which case then
and this brings me to...
3. For some odd reason, I can only match against 1 selector. So, in
HALP!
I'm very excited by what I *could* be doing once I get this working,
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||