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

Modified Files:
        pathanim.js 
Log Message:
fixed according to:

[ Bug #131034 ] Mozilla - Math.pow


Index: pathanim.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/util/pathanim.js,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** pathanim.js 2001/01/19 01:58:16     1.9
--- pathanim.js 2001/02/09 15:41:07     1.10
***************
*** 123,127 ****
        var distx = x2 - x1;
        var disty = y2 - y1;
!       var N = Math.floor(Math.sqrt(Math.pow(distx,2) + Math.pow(disty,2))/inc);
        var a = PathAnimation.getNormalizedAngle(x1,y1,x2,y2);
        var dx = inc * Math.cos(a);
--- 123,127 ----
        var distx = x2 - x1;
        var disty = y2 - y1;
!       var N = Math.floor(Math.sqrt(distx*distx + disty*disty)/inc);
        var a = PathAnimation.getNormalizedAngle(x1,y1,x2,y2);
        var dx = inc * Math.cos(a);


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

Reply via email to