Bug 159153 - Unable to remove elements from vector
Summary: Unable to remove elements from vector
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: scripting (show other bugs)
Version: 1.4.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-11 19:40 UTC by Andrew Walker
Modified: 2008-03-15 00:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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