Bug Tracker

Opened 13 years ago

Closed 12 years ago

Last modified 11 years ago

#1325 closed bug (wontfix)

Using Interfaces - Resizable

Reported by: terrybader Owned by: stefan
Priority: major Milestone: 1.1.3
Component: interface Version: 1.1.2
Keywords: Resizable for loop Cc:
Blocked by: Blocking:

Description

When using an outside loop with Resizable, Resizable overwrites the index value if 'i' is used for the index. I was able to prevent this by adding 'var' in the two for loops in the iresizable.js file. I will attach file.

i.e. directions = /n|ne|e|se|s|sw|w|nw/g; for (var i in el.resizeOptions.handlers) { ADD var TO MAKE LOCAL

if (i.toLowerCase().match(directions) != null) {

if (el.resizeOptions.handlers[i].constructor == String) {

handle = jQuery(el.resizeOptions.handlers[i]); if (handle.size() > 0) {

el.resizeOptions.handlers[i] = handle.get(0);

}

}

if (el.resizeOptions.handlers[i].tagName) {

el.resizeOptions.handlers[i].resizeElement = el; el.resizeOptions.handlers[i].resizeDirection = i; jQuery(el.resizeOptions.handlers[i]).bind('mousedown', jQuery.iResize.start);

}

}

}

Attachments (1)

iresizable2.js (15.5 KB) - added by terrybader 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by terrybader

Attachment: iresizable2.js added

comment:1 Changed 12 years ago by scott.gonzal

Resolution: wontfix
Status: newclosed

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

Note: See TracTickets for help on using tickets.