Ticket #25047: 25047-3.patch
| File 25047-3.patch, 1.1 KB (added by , 13 years ago) |
|---|
-
wp-includes/js/heartbeat.js
427 427 */ 428 428 this.enqueue = function( handle, data, dont_overwrite ) { 429 429 if ( handle ) { 430 if ( queue.hasOwnProperty( handle ) && dont_overwrite)430 if ( dont_overwrite && queue.hasOwnProperty( handle ) ) 431 431 return false; 432 432 433 433 queue[handle] = data; … … 440 440 * Check if data with a particular handle is queued 441 441 * 442 442 * $param string handle The handle for the data 443 * $return mixed The data queued with that handle or null443 * $return mixed The data queued with that handle or undefined 444 444 */ 445 445 this.isQueued = function( handle ) { 446 return queue[handle]; 446 if ( handle ) 447 return queue[handle]; 447 448 }; 449 450 /** 451 * Remove data with a particular handle from the queue 452 * 453 * $param string handle The handle for the data 454 * $return void 455 */ 456 this.dequeue = function( handle ) { 457 if ( handle ) 458 delete( queue[handle] ); 459 }; 448 460 }; 449 461 450 462 $.extend( Heartbeat.prototype, {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)