Hello, I don't think it is a good idea to introduce API changes which do not add any functionality and break people's code like this. Couldn't this have waited until 0.8?
Sorry, but it is a bit frustrating to lose time over things that have no apparent benefit. ;-( Christian Derrell Lipman schrieb: > On 9/20/07, *frederic* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > Fabian, > finally I choice to patch the Rpc.js in qx 0.7.2 removing only 2 > "getData". > Warnings disappear but I had to update my script to work properly : > > In qx 0.7.1 : > > var req=new qx.io.remote.Rpc (); > req.set({url: SERVICE_URL, serviceName: myservice, crossDomain: false, > timeout: 30000}); > req.callAsyncListeners(true,"myfunction",[param1,param2]); > req.addEventListener("completed",qx.lang.Function.bind (function(e) { > var response = e.getData(); > alert(response.result); // display data from RPC call > .... > } > > In qx 0.7.2 with Rpc.js "patched" : > > var req=new qx.io.remote.Rpc(); > req.set({url: SERVICE_URL, serviceName: myservice, crossDomain: false, > timeout: 30000}); > req.callAsyncListeners(true,"myfunction",[param1,param2]); > req.addEventListener("completed",qx.lang.Function.bind (function(e) { > var response = e; > alert(response._valueData.result); // display data from RPC call > .... > } > > It is ok now, but do you think it is normal to access to RPC > response using > "_valueData" properties ? > > > No, something is wrong. The application should not have to access a > protected member (one with a leading underscore). Fabian, is there a > missing method now that the response and event are equivalent? > > Derrell > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
