Bug 159153

Summary: Unable to remove elements from vector
Product: [Applications] kst Reporter: Andrew Walker <arwalker>
Component: scriptingAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.4.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andrew Walker 2008-03-11 19:40:14 UTC
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.
Comment 1 Andrew Walker 2008-03-15 00:17:06 UTC
SVN commit 785787 by arwalker:

BUG:159153 add ability to create a vector from an array and vice versa

 M  +64 -2     bind_vector.cpp  
 M  +11 -0     bind_vector.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=785787