Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/util
In directory usw-pr-cvs1:/tmp/cvs-serv6902
Modified Files:
pathanim.js
Log Message:
Added noevt parameters to stopAnimation and playAnimation
Index: pathanim.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/util/pathanim.js,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** pathanim.js 2000/12/12 21:23:13 1.8
--- pathanim.js 2001/01/19 01:58:16 1.9
***************
*** 37,41 ****
};
! PathAnimation.prototype.playAnimation = function () {
if (this.playing) return;
this.pathPlaying = null;
--- 37,41 ----
};
! PathAnimation.prototype.playAnimation = function (noevt) {
if (this.playing) return;
this.pathPlaying = null;
***************
*** 53,65 ****
this.playing = true;
! if (this.dlyr!=null) this.dlyr.invokeEvent("pathstart");
this.start();
};
! PathAnimation.prototype.stopAnimation = function () {
if (this.pathPlaying && this.pathPlaying.resets && !this.cancelThread &&
this.dlyr!=null) this.dlyr.moveTo(this.pathPlaying[0],this.pathPlaying[1]);
this.stop();
- if (this.dlyr != null) this.dlyr.invokeEvent("pathstop");
delete this.pathPlaying; // only deletes unstored path
this.playing = false;
};
--- 53,65 ----
this.playing = true;
! if (this.dlyr!=null && noevt!=false) this.dlyr.invokeEvent("pathstart");
this.start();
};
! PathAnimation.prototype.stopAnimation = function (noevt) {
if (this.pathPlaying && this.pathPlaying.resets && !this.cancelThread &&
this.dlyr!=null) this.dlyr.moveTo(this.pathPlaying[0],this.pathPlaying[1]);
this.stop();
delete this.pathPlaying; // only deletes unstored path
this.playing = false;
+ if (this.dlyr!=null && noevt!=false) this.dlyr.invokeEvent("pathstop");
};
_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs