Make WordPress Core

Changeset 26276


Ignore:
Timestamp:
11/19/2013 11:51:44 PM (11 years ago)
Author:
azaozz
Message:

Heartbeat: use cached $document instead of $(document), props TobiasBg, see #25073

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/heartbeat.js

    r26197 r26276  
    240240                if ( trigger && ! hasConnectionError() ) {
    241241                    settings.connectionError = true;
    242                     $(document).trigger( 'heartbeat-connection-lost', [error, status] );
     242                    $document.trigger( 'heartbeat-connection-lost', [error, status] );
    243243                }
    244244            }
Note: See TracChangeset for help on using the changeset viewer.