PDA

View Full Version : Duplication of some parameters when using Ext.data.ScriptTagProxy.buildRequest



interfasys
13 Jul 2011, 4:52 AM
Sencha Touch version tested:

1.1


Platform tested against:

Chrome 12


Description:

A proxy needs to be passed a url and some parameters like _dc will be added to it along with any extra params found in the proxy's constructor.
If you override buildRequest, then those parameters will be duplicated unless you redefine the url there.


Test Case:

See this URL : http://dev.sencha.com/deploy/touch/examples/twitter/

Look at the Query String Parameters in the console


Steps to reproduce the problem:

override buildRequest
add parameters to the URL using Ext.apply(params, {})


The result that was expected:

Only new parameters defined in buildRequest should be added to the URL instead of new + old


The result that occurs instead:

URL is built with new parameters + twice the ones that were created before calling buildRequest.


Workaround:

Just override the url in buildRequest and it will be built from scratch and only contain a single instance of each paramter