Bug Tracker

Modify

Ticket #1368 (closed bug: wontfix)

Opened 6 years ago

Last modified 5 years ago

Bug in iutil.js, IE6 throws "Operation Aborted"

Reported by: jbwyme Owned by: stefan
Priority: major Milestone: 1.1.4
Component: interface Version: 1.1.3
Keywords: Cc:
Blocking: Blocked by:

Description

I am using interface in page which is having compatibility problems with another script I am using in the apge. The definition for the Array.indexOf prototype is causing problems in my script with IE6. It may have to do the other script that is running on the same page but either way, if you want the script to be more compatible, here's the fix:

THAT LAST DEFINITION IN IUTIL.JS: CHANGE THIS

Helper function to support older browsers!

[].indexOf
(Array.prototype.indexOf = function(v, n){

n = (n == null) ? 0 : n; var m = this.length; for (var i=n; i<m; i++)

if (this[i] == v)

return i;

return -1;

});

TO THIS

Helper function to support older browsers! if (![].indexOf) {

Array.prototype.indexOf = function(v, n){

n = (n == null) ? 0 : n; var m = this.length; for (var i=n; i<m; i++)

if (this[i] == v)

return i;

return -1;

});

}

After that change, I stopped getting the error.

Attachments

iutil.js.fix.txt Download (558 bytes) - added by jbwyme 6 years ago.
code

Change History

Changed 6 years ago by jbwyme

code

comment:1 Changed 6 years ago by jbwyme

Code didn't copy right so I attached a file...

comment:2 Changed 5 years ago by scott.gonzal

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

Interface is no longer supported; consider switching to  jQuery UI.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.