Ticket #7835 (closed bug: fixed)
Undefined property when creating widgets
| Reported by: | Dennis | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | git |
| Component: | ui.widget | Version: | git |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Version: "1.9pre Live from Git Sat Nov 5 07:30:03 UTC 2011"
There is an error "Uncaught TypeError: Cannot read property 'defaultView' of undefined" when initialize a widget with $(document).widgetName() or $(window).widgetName().
I think it's because of the fix for ticket #7803.
Here you can find an example: http://jsfiddle.net/TEu2d/
Change History
Note: See
TracTickets for help on using
tickets.


Widget: Define this.document properly when instantiating a widget on a document or window. Fixes #7835 - Undefined property when creating widgets.