Ticket #2255: dojo.2255.patch

File dojo.2255.patch, 1.5 kB (added by jeff@…, 2 years ago)

Patch to fix this issue against 0.4.1-ajax build

  • dojo.js

     
    14331433}; 
    14341434dojo.io._bindQueue=[]; 
    14351435dojo.io._queueBindInFlight=false; 
     1436dojo.require('dojo.json'); /* #2255 patch from jeff@freemedsoftware.org */ 
    14361437dojo.io.argsFromMap=function(map,_167,last){ 
    14371438var enc=/utf/i.test(_167||"")?encodeURIComponent:dojo.string.encodeAscii; 
    14381439var _16a=[]; 
     
    14461447var _170=map[name]; 
    14471448if(dojo.lang.isArray(_170)){ 
    14481449dojo.lang.forEach(_170,_16d); 
     1450}else if (typeof(_170) == 'object') { /* #2255 patch from jeff@freemedsoftware.org */ 
     1451_16d(dojo.json.serialize(_170)); 
    14491452}else{ 
    14501453_16d(_170); 
    14511454} 
  • dojo.js.uncompressed.js

     
    24152415dojo.io._bindQueue = []; 
    24162416dojo.io._queueBindInFlight = false; 
    24172417 
     2418dojo.require('dojo.json'); /* #2255 patch from jeff@freemedsoftware.org */ 
    24182419dojo.io.argsFromMap = function(/*Object*/ map, /*String*/ encoding, /*String*/ last){ 
    24192420        // summary: 
    24202421        //              Converts name/values pairs in the map object to an URL-encoded string 
     
    24402441                        // FIXME: should be isArrayLike? 
    24412442                        if (dojo.lang.isArray(value)){ 
    24422443                                dojo.lang.forEach(value, domap); 
     2444                        }else if (typeof(value) == 'object') { /* #2255 patch from jeff@freemedsoftware.org */ 
     2445                                domap(dojo.json.serialize(value)); 
    24432446                        }else{ 
    24442447                                domap(value); 
    24452448                        }