Side navigation
#1325 closed bug (wontfix)
Opened June 26, 2007 05:50PM UTC
Closed March 31, 2008 01:42AM UTC
Last modified December 04, 2009 08:28AM UTC
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 (1)
Changed March 31, 2008 01:42AM UTC by comment:1
resolution: | → wontfix |
---|---|
status: | new → closed |
Interface is no longer supported; consider switching to jQuery UI.