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

Bug 440223

Summary: JavaScript error when running application in production mode
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 3.0   
Target Milestone: 3.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ivan Furnadjiev CLA 2014-07-23 09:40:29 EDT
Start Controls Demo (or any other RAP application) with "Start in Development Mode" checkbox *unchecked* in RAP launcher. JavaScript error is thrown:
---------------------
TypeError: d is undefined
http://127.0.0.1:8080/controls/rwt-resources/rap-client.js
Line 1
--------------------
A freshy created client.js starts with:
--------------------
(function($){rwt={define:function(d,c){var g=d.split(".");...
Comment 1 Ivan Furnadjiev CLA 2014-07-23 09:49:33 EDT
In 2.3 client.js starts with:
--------------
(function($){rwt={};var namespace=function(c){var f=c.split(".");var e=window;var b=f[0];for(var d=0,a=f.length-1;d<a;d++,b=f[d]){if(!e[b]){e=e[b]={}}else{e=e[b]}}if(!(b in e)){e[b]={}}return b};
--------------
in 3.0 (master) with:
------------- 
(function($){rwt={define:function(d,c){var g=d.split(".");var f=window;var b=g[0];for(var e=0,a=g.length-1;e<a;e++,b=g[e]){if(!f[b]){f=f[b]={}}else{f=f[b]}}if(!(b in f)){f[b]=c||{}}return b}};var namespace=rwt.define;
-------------
Comment 2 Ivan Furnadjiev CLA 2014-07-24 08:17:58 EDT
Fixed with change https://git.eclipse.org/r/30331.