Error message: Don't make functions within a loop

This code works fine and isn’t showing any errors in Firefox but JSLint declares “Don’t make functions within a loop”. Is this something I should be worried about?

	var onAction = ["onfocus","onmouseover"];

for (i=0; i < onAction.length; i++) {
				dojo.query("#top-menu a").forEach(function(menuChange){
				dojo.connect(menuChange, onAction[i], function(evt){
				menuChangeParent = menuChange.parentNode;, "backgroundColor", "#17120F");
				});//End dojo.connect mousover
				});//End dojo.query
			} // onAction for loop