Bug Tracker

Ticket #2840 (closed bug: invalid)

Opened 7 months ago

Last modified 7 months ago

droppable.init attempts to refer to a nonexistent property

Reported by: guest Assigned to: paul
Type: bug Priority: major
Milestone: 1.2.4 Component: ui
Version: 1.2.3 Keywords: droppable
Cc: Needs: Review

Description

At the following line:

//Store the droppable's proportions

this.proportions = { width: this.element.outerWidth(), height: this.element.outerHeight() };

The div I'm passing to droppable() does have a width() of 898 at the time droppable() is called, according to firebug. But it has no outerWidth(). So this init method fails with the error that outerWidth() is not a function. Why are we assuming the element has an outerWidth() here? Is it necessary?

Attachments

Change History

Changed 7 months ago by paul

  • status changed from new to closed
  • resolution set to invalid

It's neccessary. The reason why it's failing for you is that you probably didn't use jQuery 1.2.4 (integrated in the zip package), or use a trunk version of jQuery.

Note: See TracTickets for help on using tickets.