Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

gallery-2011.02.23-19-01 ericf gallery-resource

  • Loading branch information...
commit ce4b5b834433d98f1f7bd95e504a58abde5c26ba 1 parent 0d8eb13
YUI Builder authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gallery-resource/js/resource.js
View
4 src/gallery-resource/js/resource.js
@@ -59,7 +59,9 @@
contentType : 'application/json; charset=UTF-8',
serialize : Y.JSON.stringify,
deserialize : function(r){
- return Y.JSON.parse(r.responseText);
+ if (r.responseText) {
+ return Y.JSON.parse(r.responseText);
+ }
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.