#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)
Change History (2)
Changed 16 years ago by
Attachment: | iresizable2.js added |
---|
comment:1 Changed 15 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Interface is no longer supported; consider switching to jQuery UI.