Closed webb-nickj closed 7 years ago
The use of try and catch to parse AJAX responses to JSON could currently mask errors in the callback function.
Would better if the callback was handled outside of try/catch:
var callbackData; try{ callbackData = JSON.parse( xhr.responseText ); }catch( e ){ callbackData = xhr.repsonseText; } strictCallbacks ? callback(null, xhr, callbackData) : callback(xhr,callbackData);
Hey Nick, thanks for the bug information. The pull request is merged and should fix this issue. Thanks!
The use of try and catch to parse AJAX responses to JSON could currently mask errors in the callback function.
Would better if the callback was handled outside of try/catch: