[ka-Map-dev] [Bug 1684] New: Dirty use of the variable 'i'

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Thu Mar 15 21:30:35 EST 2007


http://bugzilla.maptools.org/show_bug.cgi?id=1684

           Summary: Dirty use of the variable 'i'
           Product: ka-Map
           Version: 1.0
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: core
        AssignedTo: ka-map-dev at lists.maptools.org
        ReportedBy: dave at smartrak.co.nz


In "kaMap.prototype.resize" in kaMap.js, the final loop uses the variable i, not
declaring it var to make it local.
The function it calls (_layer.prototype.setTileLayer) also uses the variable i
without declaring it var, messing up the first loop.
This would appear to be an unintended mistake.

This was discovered by accident, I'm not using the multiple layer support so I
don't know if changing this improves/unimproves it.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the ka-Map-dev mailing list