This is fixed in the changeset I sent you for review :)

-Max

Henry Minsky wrote:
> In the line below
> 
>         view.mouseevent( eventStr );
> I am getting an error in DHTML that view.mouseevent is not a function
> 
> My test case is a little too big to put here, it's basically an lzunit 
> test. I haven't investigated it further , wondering if
> view.mouseevent is always supposed to be bound?
> 
> 
> 
> 
> LzModeManager.handleMouseEvent= function ( view, eventStr ) {
>     //Debug.warn(view + ', ' + eventStr);
> 
>     if (eventStr == "onmouseup") LzTrack.__LZmouseup();
> 
>     LzGlobalMouse.__mouseEvent(eventStr);
> 
>     if ( this.eventsLocked == true ){
>         return;
>     }
> 
>     var dosend = true;
>     var isinputtext = false;
> 
>     if (view == null ) {  // check if the mouse event is in a inputtext
>         var ss = Selection.getFocus();
>         if ( ss != null ){
>             var focusview = eval( ss.substring( 0 , ss.lastIndexOf( '.' ) )
>                                   + ".view");
>             if ( focusview ) view = focusview;
>         }
>     }
> 
>     var i = this.modeArray.length-1;
>     while( dosend && i >= 0 ){
>         var mView = this.modeArray[ i-- ];
>         // exclude the debugger from the mode
>         if ($debug) {
>              if (view.childOf(Debug))
>                 break;
>         }
> 
>         if (view.childOf( mView ) ){
>             break;
>         } else {
>             dosend = mView.passModeEvent( eventStr , view );
>         }
>     }
> 
>     if ( dosend ){
>         //check for double-click
>         if ( eventStr == "onclick" ){
>             if ( this.__LZlastclick == view  &&
>                ('ondblclick' in view && view.ondblclick) &&
>                !view.ondblclick.hasNoDelegates &&
>                 (getTimer() - this.__LZlastClickTime)< 
> view.DOUBLE_CLICK_TIME ){
>                     //this is a double-click
>                     eventStr = "ondblclick";
>                     this.__LZlastclick = null;
>             } else {
>                 this.__LZlastclick = view;
>                 this.__LZlastClickTime = getTimer();
>             }
>         }
> 
>         view.mouseevent( eventStr );
>         if ( eventStr == "onmousedown" ){
>             LzFocus.__LZcheckFocusChange( view );
>         }
>     }
> 
> 
>     //this on matters for onmouseup and onmousedown, but it's easier to 
> just
>     //set it regardless
>     this[ "haveGlobal" + eventStr ] = false;
> 
> }

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to