Scratch the TODO, just removing those text replacements. Not necessary anymore.

This commit is contained in:
Dannon Baker
2014-09-17 21:11:12 -04:00
parent ad76d7e2ac
commit e46efa26ee
+1 -11
View File
@@ -123,17 +123,7 @@ function LazyDataLoader( config ){
'* text' : window.String,
'text html' : true,
'text xml' : jQuery.parseXML,
// add NaN, inf, -inf handling to jquery json parser (by default)
// TODO: This functionality shouldn't be required as of
// 2006c39aea16, and we should probably assume correct JSON instead
// of stripping out these strings.
'text json' : function( json ){
json = json.replace( /NaN/g, 'null' );
json = json.replace( /-Infinity/g, 'null' );
json = json.replace( /Infinity/g, 'null' );
return jQuery.parseJSON( json );
}
'text json' : jQuery.parseJSON
},
// interface to begin load (and first recursive call)