Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2840 closed bug (notabug)

droppable.init attempts to refer to a nonexistent property

Reported by: guest Owned by: paul
Priority: major Milestone:
Component: ui.core Version: 1.2.3
Keywords: droppable Cc:
Blocked by: Blocking:


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?

Change History (2)

comment:1 Changed 15 years ago by paul

Resolution: invalid
Status: newclosed

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.

comment:2 Changed 15 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

Note: See TracTickets for help on using tickets.