On Jul 11, 3:17 am, Marv <[email protected]> wrote:
> 1) I felt like I had to kind of hack in the 'Open' extension below. I
> couldn't figure out the syntax to get it into the prototype._init
> function.

What you did is fine.  You could also just bind to the dialogopen
event in _init.

> 2) Is there a less verbose way to specify the event extensions rather
> than repeating 'this.uiDialog.bind('??

Chain your calls to .bind().
Create a function that stores the location and pass that function to
dragstop and resizestart instead of creating duplicate functions.

Other notes:
Use self.location instead of $(self).data('location').

In your open function this code is redundant:
var el = this.element[0]
$(el).parent()... // $(el) === this.element
Also, you should just use the existing property this.uiDialog which
points to the generated wrapper.

Fixed positioning should be supported natively in 1.8 with the new
positioning plugin.
--~--~---------~--~----~------------~-------~--~----~
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