Ok, here are the 'troublesome' code artifacts.
 
CASE 1
 
this.popevent=new EventListener(this)
     this.popevent. {
          var lyr=e.getSource()
          o=e.getTarget()
          if (o.isVert&&o.y!=130) {o.moveTo(o.x+50,o.y-20)}
          if (!o.isVert&&o.y!=130) {o.moveTo(o.x+60,o.y+40)}
          if (o.y!=130) {
          o.setZIndex(o.z+12)
          o.winRoEnabled=false
          DragEvent.enabledDragEvents(o)
      }
      if (o.y==130) {
      alert('This position can not be popped.')
      }
 }
 
I've seen 'DragEvent.enabledDragEvents(o)' used in an onCreate.  This one causes a method alert.  Works fine with that line // out.
 
CASE 2
 
SkinWinRotator.prototype.enableRotate=function() {
     var thing = arguments[0];
     if(thing.constructor!=DynDocument)
      thing.getComponent().addEventListener(SkinWinRotator.rotevents.rotatevent)
     for (var i=1;i<arguments.length;i++) {
      var lyr=arguments[i].getComponent()
      lyr.rotevents.addEventListener(SkinWinRotator.rotevents.rotatevent)
     }
}
    SkinWinRotator.prototype.disableRotate=function() {
     for (var i=0;i<arguments.length;i++) {
      var lyr=arguments[i].getComponent()
      lyr.rotevents.removeEventListener(SkinWinRotator.rotevents.rotatevent)
      }
}
 
I've created extensions (simular to DragEvent) that do various things for window/widget management.  This was an attempt at building simular on/off behavior inside of the widget itself, related to eventlisteners used within the same widget.
 
Hope this clears the mud some.
 
DS

Reply via email to