Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/event
In directory usw-pr-cvs1:/tmp/cvs-serv22640/src/lib/dynapi/event

Modified Files:
        mouse.js 
Log Message:
Label works in all browsers now. So does dynImage. Now NS4 button (in fact, the label 
) generates all clicks, even the missed ones ( remeber growable button in the button 
example, did not grow when clicked over the text. This was because as label cancels 
browser events when set to non-selectable, NS4 was not firing its click event. Made 
label generate one by itself.

Index: mouse.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/event/mouse.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** mouse.js    2001/03/26 15:49:30     1.3
--- mouse.js    2001/03/26 16:57:00     1.4
***************
*** 11,17 ****
  */
  // The mouseEvent object
! DynMouseEvent=function() {
        this.DynEvent=DynEvent;
        this.DynEvent();
  };
  DynMouseEvent.prototype=new DynEvent();
--- 11,19 ----
  */
  // The mouseEvent object
! DynMouseEvent=function(old) {
        this.DynEvent=DynEvent;
        this.DynEvent();
+       // Copy properties from given event, if any
+       if (old) for(var i in old) this[i]=old[i]
  };
  DynMouseEvent.prototype=new DynEvent();


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

Reply via email to