In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Relationship Graph View Issue ] Dependency Graph ]
related to child of duplicate of

Viewing Issue Simple Details
ID Category Type Reproducibility Date Submitted Last Update
0000125 [In-Portal CMS] Optimization bug report always 2009-07-19 07:39 2009-10-03 07:56
Reporter alex View Status public  
Assigned To alex
Priority normal Resolution fixed  
Status closed      
Summary 0000125: Javascript cycle "for (index in array)" is used for arrays - replace with normal "for (index = 0; i < array.length; i++)"
Description Currently in some places arrays are accessed as objects in cycles:
var arr = ['one', 'two'];
for (var elem in arr) {
    alert( arr[elem] );

This approach works until someone adds new methods to Array class declaration. I propose to change such approach to normal "for" cycle:
var arr = ['one', 'two'];
for (var elem = 0; i < arr.length; elem++) {
    alert( arr[elem] );
Additional Information

Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker