Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319554

Summary: $ variable name in qx.js clashes with prototype
Product: [RT] RAP Reporter: Philipp Leusmann <leusmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 1.3   
Target Milestone: 1.4 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 327451    
Bug Blocks: 319964    

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.