[Chameleon-dev] [Bug 1823] New: ROI tools: cannot make another after DeregisterEvent

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Sun Nov 18 20:49:41 EST 2007


           Summary: ROI tools: cannot make another after DeregisterEvent
           Product: Chameleon
           Version: 2.4
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: benftee at gmail.com

I found that after calling CWCROIManager->roi has no props, I could not create
another ROI. There was a javascript error: "roi has no properties"

Found a fix. In cwc_roi.js, there is an array called this.events, each element
of which is an array of codes to execute when the event is triggered

But, function DeregisterEvent clobbers the whole array:empty array:
this.events[i] = "";
...this causes a crash when an attempt is made to fetch the event

instead of blanking just the sub-array element, like this:
this.events[event][i] = "";//FIXES 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 Chameleon-dev mailing list