Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319554 - $ variable name in qx.js clashes with prototype
Summary: $ variable name in qx.js clashes with prototype
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 1.4 M3   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 327451
Blocks: 319964
  Show dependency tree
 
Reported: 2010-07-12 09:13 EDT by Philipp Leusmann CLA
Modified: 2010-11-13 13:42 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Leusmann CLA 2010-07-12 09:13:55 EDT
since in the minimized qooxdoo-version qs.js '$' is used as a variable name, it is not possible to use the prototype js library, which uses the '$' char as an operator name.

So my request is to rename the array in line 1 of qx.js with some safer name. 
Since I suppose, qx.js is compressed anyway before sending to the client at runtime, using more than one char as the qualifier should be no problem.
Comment 1 Ralf Sternberg CLA 2010-11-13 13:42:37 EST
This issue has been solved with the new YUI-based Javascript compressor (bug 327451). The variable $ is still used in a closure around the RAP js code for string replacement. However, since it is not bound in the global scope anymore and does not interfere with third-party libraries.