Changeset 5620
- Timestamp:
- 05/16/08 16:39:27 (6 months ago)
- Files:
-
- 1 modified
-
trunk/jquery/src/ajax.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/ajax.js
r5614 r5620 337 337 try { 338 338 // process the data (runs the xml through httpData regardless of callback) 339 data = jQuery.httpData( xhr, s.dataType );339 data = jQuery.httpData( xhr, s.dataType, s.dataFilter ); 340 340 } catch(e) { 341 341 status = "parsererror"; … … 461 461 }, 462 462 463 httpData: function( xhr, type ) {463 httpData: function( xhr, type, filter ) { 464 464 var ct = xhr.getResponseHeader("content-type"), 465 465 xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0, … … 468 468 if ( xml && data.documentElement.tagName == "parsererror" ) 469 469 throw "parsererror"; 470 471 // Allow a pre-filtering function to sanitize the response 472 if( filter ) 473 data = filter( data, type ); 470 474 471 475 // If the type is "script", eval it in global context
