Opened 12 years ago

Closed 12 years ago

#3322 closed defect (fixed)

dojo.rpc.JsonService syntax error on IE

Reported by: guest Owned by: Dustin Machi
Priority: high Milestone:
Component: RPC Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

dojo.rpc.JsonService? has a syntax error when evaluated on IE6.0

Cause is an trailing comma (http://dojotoolkit.org/support/faq/why-does-ie-say-i-have-syntax-error).

-- Kind regards, Eric Meyer

Patch:


--
Index: C:/opt/eclipse-rc/eclipse/workspace/dojo_09/dojo/rpc/JsonService.js
===================================================================
--- C:/opt/eclipse-rc/eclipse/workspace/dojo_09/dojo/rpc/JsonService.js	(revision 8926)
+++ C:/opt/eclipse-rc/eclipse/workspace/dojo_09/dojo/rpc/JsonService.js	(working copy)
@@ -30,7 +30,7 @@
 				postData: this.createRequest(method, parameters),
 				contentType: this.contentType,
 				timeout: this.timeout, 
-				handleAs: "json",
+				handleAs: "json"
 			});
 			def.addCallbacks(this.resultCallback(deferredRequestHandler), this.errorCallback(deferredRequestHandler));
 		},

Attachments (1)

JsonService.patch.txt (631 bytes) - added by guest 12 years ago.
patch

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by guest

Attachment: JsonService.patch.txt added

patch

comment:1 Changed 12 years ago by Dustin Machi

Resolution: fixed
Status: newclosed

(In [8990]) remove trailing comma. Fixes #3322

Note: See TracTickets for help on using tickets.