Bug 163668

Summary: The properties: Vector x and Vector y are not defined in the VectorView Class
Product: [Applications] kst Reporter: Yiwen Mao <yiwenv>
Component: scriptingAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Yiwen Mao 2008-06-10 00:22:09 UTC
Version:           1.7.0 (using KDE 4.0.1)
Installed from:    Unspecified
Compiler:          Fedora 6 
OS:                Linux

The properties: Vector x and Vector y are not defined in the VectorView Class

//Use two vectors to construct a vector view:
 kst> a=new Array();
kst> for(var i=0;i<100;i++){a.push(i)};
100
kst> x=new Vector(a)
Vector
kst> y=new Vector(a);
Vector
kst> v=new VectorView(x,y)
VectorView

//get the x vector of v
kst> v.x
undefined

//get the y vector of v
kst> v.y
undefined

v.x and v.y are not defined and therefore can not be used.
e.g
kst> v.x.length
Error: TypeError: Undefined value
Comment 1 Andrew Walker 2008-06-11 21:02:55 UTC
SVN commit 819684 by arwalker:

BUG:163668 Correctly define VectorView property names in the javaScript documentation

 M  +1 -0      bind_vectorview.cpp  
 M  +4 -4      bind_vectorview.h  


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