Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#7835 closed bug (fixed)

Undefined property when creating widgets

Reported by: Dennis Owned by:
Priority: minor Milestone: git
Component: ui.widget Version: git (not yet released)
Keywords: Cc:
Blocked by: Blocking:

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 (2)

comment:1 Changed 7 years ago by Scott González

Resolution: fixed
Status: newclosed

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

Changeset: 8fd6101c3c330be347b50f4e659161d739513162

comment:2 Changed 7 years ago by Scott González

Milestone: 1.9git
Note: See TracTickets for help on using tickets.