File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"globals" : {
3
- "ActiveXObject" : false
3
+ "ActiveXObject" : false ,
4
+ "console" : false
4
5
},
5
6
"browser" : true ,
6
7
"jquery" : true
Original file line number Diff line number Diff line change 356
356
// Create the required JSONP callback function for the request
357
357
function createJsonpCallback ( requestSettings , mockHandler , origSettings ) {
358
358
var callbackContext = origSettings && origSettings . context || requestSettings ;
359
- jsonp = requestSettings . jsonpCallback || ( "jsonp" + jsc ++ ) ;
359
+ var jsonp = requestSettings . jsonpCallback || ( "jsonp" + jsc ++ ) ;
360
360
361
361
// Replace the =? sequence both in the query string and the data
362
362
if ( requestSettings . data ) {
369
369
// Handle JSONP-style loading
370
370
window [ jsonp ] = window [ jsonp ] || function ( tmp ) {
371
371
data = tmp ;
372
- jsonpSuccess ( requestSettings , callbackContext , mockHandler ) ;
373
- jsonpComplete ( requestSettings , callbackContext , mockHandler ) ;
372
+ jsonpSuccess ( requestSettings , callbackContext , mockHandler ) ;
373
+ jsonpComplete ( requestSettings , callbackContext , mockHandler ) ;
374
374
// Garbage collect
375
375
window [ jsonp ] = undefined ;
376
376
566
566
return mockHandlers [ i ] ;
567
567
}
568
568
} ;
569
- } ) ( self . jQuery ) ;
569
+ } ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments