• I’m trying to use custom javascript on wordpress, it gives me error for this code:

    function parameterizeCurveOpt(path, partArc, initialT) {
    	var STEPS = 2000;
    	var errRange = 0.00000001;
    	var t = 1 / STEPS;
    	var optt = (STEPS / NumOfTooths) * t;
    	var aX=0;
    	var aY=0;
    	var bX=path[0], bY=path[1];
    	var dX=0, dY=0;
    	var dS = 0;
    	var arrRes = null;
    	var sumArc = 0;
    	var arrT = new Array(Math.round(partArc)); ...

    Uncaught RangeError: Invalid array length

    but out of wordpress it’s working fine. Any suggestions?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Javascript Error’ is closed to new replies.