Bug Tracker

Ticket #2107 (closed bug: fixed)

Opened 1 year ago

Last modified 10 months ago

issue in ui.mouse.js when using slider (ie6)

Reported by: jasonaward Assigned to: paul
Type: bug Priority: minor
Milestone: 1.2.2 Component: ui
Version: 1.2.1 Keywords:
Cc: Needs: Review

Description

There seems to be a problem with ui.mouse.js in recent SVN versions when using slider within IE6. This problem does not occur in Firefox.

Here's the callstack for the problem:


ui.mouse.js


if(

e.which != 1 //only left click starts dragging

$.inArray(e.target.nodeName.toLowerCase(), this.options.dragPrevention) != -1 // Prevent execution on defined elements
(this.options.condition && !this.options.condition.apply(this.options.executor this, [e])) //Prevent execution on condition

) return true;


jquery.js (array.length is null)


inArray: function( elem, array ) {

for ( var i = 0, length = array.length; i < length; i++ )

if ( array[ i ] == elem )

return i;

return -1;

},


This problem occurs with even the basic slider with no options.

If you need additional information or a sample case, please let me know.

Attachments

Change History

Changed 10 months ago by squidmark

I am experiencing this issue in Firefox 2, IE 6 and IE 7. I am using ui.mouse.js in conjunction with ui.sortable.js. In Firefox I get an error message that reads 'a has no properties,' and in IE the error message reads 'length is null or not an object.'

When I ran firebug's debugger ui.mouse.js errored out after evaluating line 99:

$.inArray(e.target.nodeName.toLowerCase(), this.options.dragPrevention) != -1

I am using the latest version (revision 4582) of ui.mouse.js. When I revert back to the version of ui.mouse.js that is currently available at ui.jquery.com the error does not occur.

Changed 10 months ago by paul

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

This should be fixed in 1.5b.

Note: See TracTickets for help on using tickets.