Patches item #432135, was updated on 2001-06-09 20:43
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=432135&group_id=5757

Category: DynAPI 2 Event
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Buerge (mibuerge)
Assigned to: Nobody/Anonymous (nobody)
Summary: DynMouseEvent.EventMethod

Initial Comment:
There's a bug in the DynMouseEvent.EventMethod on
UNIX-systems (tested on a Linux and a Solaris machine).

JavaScript Error:
http://cgi.ethz.ch/~mibuerge/dynapi/lib/dynapi/event/mouse.js,
line 134: syntax error. 
.dbltimer=null
^

That line is saying:
else
this.dbltimer=setTimeout(this+'.dbltimer=null',300);

The strange thing is that it happens just once, then it
works. My attempt to explain this, is that the 'this'
inside the timeout evaluates to something strange. I
hope somebody knows it better.

Anyway: I can come with the following to fix the
problem (by attaching the .dbltimer-property directly
to DynMouseEvent):
lines 129 - 134:
if (DynMouseEvent.dbltimer!=null) {
        evt.type=type="dblclick";
        evt.bubble = true;
        realsrc.invokeEvent(type,evt);
}
else
DynMouseEvent.dbltimer=setTimeout('DynMouseEvent.dbltimer=null',300);

--
Michael Buerge

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=432135&group_id=5757

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to