| 483 | | // If the type is "script", eval it in global context |
| 484 | | if ( type == "script" ) |
| 485 | | jQuery.globalEval( data ); |
| 486 | | |
| 487 | | // Get the JavaScript object, if JSON is used. |
| 488 | | if ( type == "json" ) |
| 489 | | data = eval("(" + data + ")"); |
| 490 | | |
| | 483 | // The filter can actually parse the response |
| | 484 | if( typeof data == 'string' ){ |
| | 485 | |
| | 486 | // If the type is "script", eval it in global context |
| | 487 | if ( type == "script" ) |
| | 488 | jQuery.globalEval( data ); |
| | 489 | |
| | 490 | // Get the JavaScript object, if JSON is used. |
| | 491 | if ( type == "json" ) |
| | 492 | data = eval("(" + data + ")"); |
| | 493 | } |
| | 494 | |