You'll be able to pass a context with jQuery 1.3.3, but for now you
have to do:

var self = this;
this.element.bind('click', function() {
    // use self instead of this in here
});


On Aug 30, 4:45 am, Karantir <[email protected]> wrote:
> Thanks, Scott.
> Is there a way to call handler in the custom context?
>
> On Aug 29, 4:01 pm, Scott González <[email protected]> wrote:
>
>
>
> > Hey Karantir,
>
> > There are a few problems with your code:
>
> > - When you do this._trigger('loaded'), the event name will be
> > "orbloaded", so your bind call needs to be .bind("orbloaded", ...)
> > - The bound event handler will run in the context of a DOM element,
> > not your plugin
> > - Your plugin shouldn't bind to its own events.
>
> > Hard to tell you what direction to go in at this point since there's
> > no functionality in your widget yet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to