You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2005/02/15 03:32:38 UTC
DO NOT REPLY [Bug 33577] New: -
javascript error: missing var declaration in usecase-kupu.js
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33577>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33577
Summary: javascript error: missing var declaration in usecase-
kupu.js
Product: Lenya
Version: 1.2.1
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Kupu Integration
AssignedTo: dev@lenya.apache.org
ReportedBy: deatrich@gmail.com
The version of lenya I'm using is actually the 1.2.x branch checked out today.
However, the same js bug (for me) would be there in the 1.2.1 release.
While inserting an image from the asset library with kupu the servlet echoed
this error on stdout:
"file:/usr/local/lenya-1.2.x/build/lenya/webapp/lenya/usecases/kupu/usecase-kupu.js",
line 82: uncaught JavaScript exception:
## at publication_image_library
(file:/usr/local/lenya-1.2.x/build/lenya/webapp/lenya/usecases/kupu/usecase-kupu.js,
Line 82):
## Implicit declaration of global variable 'title' forbidden. Please ensure all
variables are explicitely declared with the 'var' keyword
So I declared the variable in usecase-kupu.js and it worked fine. Thus:
$ pwd
/usr/local/lenya/build/lenya/webapp/lenya/usecases/kupu
$ diff usecase-kupu.js usecase-kupu.js.orig
82c82
< var title =
metaDoc.getElementsByTagNameNS("http://purl.org/dc/elements/1.1/",
"title").item(0).getChildNodes().item(0).getNodeValue();
---
> title =
metaDoc.getElementsByTagNameNS("http://purl.org/dc/elements/1.1/",
"title").item(0).getChildNodes().item(0).getNodeValue();
94c94
I'm using mozilla 1.7.3
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org