Bug 163647 - window.windowName does not return the name of the window
Summary: window.windowName does not return the name of the window
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-09 20:16 UTC by Yiwen Mao
Modified: 2008-06-11 21:01 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 Yiwen Mao 2008-06-09 20:16:51 UTC
Version:           1.7 (using KDE 4.0.1)
Installed from:    Unspecified
OS:                Linux

The windowName property does not return the name of the window

Open JavaScript console in Kst. Type the following codes

kst> w=new Window("Test")
Window
kst> w.windowName
undefined
kst> p=new Plot(w.windowName)
Error: TypeError: Plot: Argument 0 was not of the expected type.
kst> p=new Plot("Test")
Plot

p=new Plot(w.windowName) and p=new Plot("Test") should construct the same plot on the winodw since w.windowName is "Test"; however w.windowName fails to return "Test"
Comment 1 Andrew Walker 2008-06-11 21:01:01 UTC
SVN commit 819682 by arwalker:

BUG:163647 The documentation incorrectly refered to windowName. The actual javaScript property is 'name'

 M  +1 -1      bind_window.h  


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