Bug 163983

Summary: The method: newDocument() is not defined in the Document 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:
Sentry Crash Report:

Description Yiwen Mao 2008-06-13 18:28:21 UTC
Version:           1.7.0 (using KDE 4.0.1)
Installed from:    Unspecified
Compiler:          Fedora 6 
OS:                Linux

newDocument() is not defined in the Document class

Open Kst
kst> d=Kst.document
Document
kst> d.newDocument()
Error: TypeError: Value undefined (result of expression d.newDocument) is not an object. Cannot be called.

Error returns after calling newDoucment()
Comment 1 Andrew Walker 2008-06-13 18:33:38 UTC
Modified documentation in bind_document.h
Comment 2 Yiwen Mao 2008-06-16 21:18:58 UTC
kst> Kst.document.newDocument()
Error: TypeError: Value undefined (result of expression Kst.document.newDocument) is not an object. Cannot be called.

The error still exists
Comment 3 Andrew Walker 2008-06-17 00:58:50 UTC
The usage is:

Kst.document.clear()