Skip to main content

Search and Top Navigation

#8890 closed bug (invalid)

Opened December 06, 2012 12:49PM UTC

Closed December 21, 2012 08:44AM UTC

ui.draggable bug in IE 9: object null or undefined when element is dropped

Reported by: michl Owned by: michl
Priority: minor Milestone: 1.10.0
Component: ui.draggable Version: 1.9.2
Keywords: Cc:
Blocked by: Blocking:
Description

in IE 9 when an element is dropped.

line 6 character 33889 in jquery min package

Für die Eigenschaft "options" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert

jquery-ui-1.9.2.custom.min.js, Zeile 6 Zeichen 33889

We got it solved by the following changes in 1.9.2 min package:

before:

stop: function(event, ui) {

var o = $(this).data('draggable').options;

if (o._cursor) $('body').css("cursor", o._cursor);

}

after:

stop: function(event, ui) {

if ($(this).data('draggable')) {

var o = $(this).data('draggable').options;

if (o._cursor) $('body').css("cursor", o._cursor);

}

}

Attachments (0)
Change History (3)

Changed December 06, 2012 01:20PM UTC by tj.vantoll comment:1

owner: → michl
status: newpending

Hi michl, thanks for taking the time to contribute to the jQuery UI project.

We're going to need a minimal test case showing this problem in order to assess your ticket. You can use this as a starting point - http://jsfiddle.net/tj_vantoll/8RtqV/.

Thanks!

Changed December 06, 2012 01:23PM UTC by scottgonzalez comment:2

description: error \ \ object is null or undefined \ \ in IE 9 when an element is dropped. \ \ line 6 character 33889 in jquery min package \ \ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- \ \ Für die Eigenschaft "options" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert \ jquery-ui-1.9.2.custom.min.js, Zeile 6 Zeichen 33889 \ \ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- \ \ \ We got it solved by the following changes in 1.9.2 min package: \ \ =-=-=-=-=-=-=- \ before: \ =-=-=-=-=-=-=- \ \ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- \ \ stop: function(event, ui) { \ var o = $(this).data('draggable').options; \ if (o._cursor) $('body').css("cursor", o._cursor); \ } \ \ \ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- \ \ =-=-=-=-=-=-=- \ after: \ =-=-=-=-=-=-=- \ \ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- \ \ stop: function(event, ui) { \ if ($(this).data('draggable')) { \ var o = $(this).data('draggable').options; \ if (o._cursor) $('body').css("cursor", o._cursor); \ } \ } \ \ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- \ \ in IE 9 when an element is dropped. \ \ line 6 character 33889 in jquery min package \ \ Für die Eigenschaft "options" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert \ jquery-ui-1.9.2.custom.min.js, Zeile 6 Zeichen 33889 \ \ We got it solved by the following changes in 1.9.2 min package: \ \ '''before:''' \ \ stop: function(event, ui) { \ var o = $(this).data('draggable').options; \ if (o._cursor) $('body').css("cursor", o._cursor); \ } \ \ \ '''after:''' \ \ stop: function(event, ui) { \ if ($(this).data('draggable')) { \ var o = $(this).data('draggable').options; \ if (o._cursor) $('body').css("cursor", o._cursor); \ } \ } \

Changed December 21, 2012 08:44AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!