Initial fix for MDL-12256, "Course AJAX has very poor accessibility - ALT text" - test, imgAttributes.length NOT attributes.length. Merged.

This commit is contained in:
nfreear
2007-11-19 15:26:29 +00:00
parent ee20235449
commit 9523ad0ab7
+1 -1
View File
@@ -160,7 +160,7 @@ main_class.prototype.mk_button = function(tag, imgSrc, attributes, imgAttributes
}
}
if (imgAttributes != null) {
for (var c=0; c<attributes.length; c++) {
for (var c=0; c<imgAttributes.length; c++) {
image.setAttribute(imgAttributes[c][0], imgAttributes[c][1]);
}
}