[Kst] [Bug 159153] New: Unable to remove elements from vector

Andrew Walker arwalker at sumusltd.com
Tue Mar 11 19:40:15 CET 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=159153         
           Summary: Unable to remove elements from vector
           Product: kst
           Version: 1.4.0
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kst kde org
        ReportedBy: arwalker sumusltd com


Version:           1.4.0 (using KDE 3.5.9)
Installed from:    Compiled From Sources
OS:                Linux

The following problem was noted by the LFI team:

Trying to remove some elements from the output of the cross power
spectrum plugin. Using the code below I was expecting that

	crossPowerX=crossPower.frequency;
	crossPowerYRe=crossPower.real;
	crossPowerYIm=crossPower.imaginary;

	crossPowerX.slice(0,1);
	crossPowerYRe.slice(0,1);
	crossPowerYIm.slice(0,1);

would remove the first element from each of the vectors. instead I got
an error message for

Error: TypeError: Value undefined (result of expression
crossPowerX.slice) is not an object. Cannot be called.

I am assuming that the output of the plugin is a Vector which inherits
the javascript array.


More information about the Kst mailing list