Changes between Initial Version and Version 1 of Ticket #6601


Ignore:
Timestamp:
Apr 24, 2008, 8:01:15 PM (13 years ago)
Author:
Adam Peller
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6601

    • Property Owner changed from anonymous to Adam Peller
    • Property Milestone changed from to 1.1.1
    • Property Reporter changed from guest to Chris Mitchell
  • Ticket #6601 – Description

    initial v1  
    11I am calling dojo.xhrGet with handleAs: "json-comment-optional" and the service is giving back "".  which is causing
     2
     3{{{
    24dojo.fromJson = function(/*String*/ json){
    35        // summary:
     
    810        return eval("(" + json + ")"); // Object
    911}
     12}}}
    1013
    1114In 20x responses with no content, json is "", resulting in the handler throwing a syntax error.
     
    1417To fix the problem, we're running with the following patch to the above function in dojo/_base/xhr.js:
    1518
     19{{{
    1620return json==="" ? "" : eval("("+json+")");
     21}}}
    1722
    1823This patch is submitted under CCLA by Chris Mitchell.