Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have code:
Array.prototype.unique = function (comparer) {
//Function body, not important
}
The problem is that code in imce.js around line 100 picks the array prototype function as part of the array because the enumeration is done on the array as an object. This is what the code reads:
for (var i in subdirs) {//add subdirectories
imce.dirAdd(prefix + subdirs[i], branch, true);
}
If the for ... in loop is used then a subdirs.hasOwnProperty(i) check should be made.
Comment | File | Size | Author |
---|---|---|---|
imcebug.PNG | 5.41 KB | apokryfos |
Comments
Comment #3
ufku CreditAttribution: ufku commentedCommitted. Thanks.