Change 20090127-bargull-V3h by bargull@dell--p4--2-53 on 2009-01-27 00:46:40     in /home/Admin/src/svn/openlaszlo/trunk     for http://svn.openlaszlo.org/openlaszlo/trunk
Change 20090127-bargull-V3h by bargull@dell--p4--2-53 on 2009-01-27 00:46:40
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix runtime exception from lz.ModeManager

New Features:

Bugs Fixed: LPP-7681

Technical Reviewer: hqm
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
handleMouseEvent(..) throw a "A term is undefined and has no properties." error in swf9 under certain conditions:
- the call to passModeEvent may change the modalviews-array ("modeArray")
 -> so in the next iteration it is possible that an invalid entry is used
Exactly that happened in the components example when submenus were opened and user clicked somewhere else (see bugreport).
To fix that bug, a simple if-condition needs to be added. 
I also changed all equality tests to identity tests (whenever views are compared to each other).
    

Tests:
see bugreport



git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@12661 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo