Ticket #7835 (closed bug: fixed)

Opened 19 months ago

Last modified 19 months ago

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

comment:1 Changed 19 months ago by Scott González

  • Status changed from new to closed
  • Resolution set to fixed

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 19 months ago by scott.gonzalez

  • Milestone changed from 1.9 to git
Note: See TracTickets for help on using tickets.