Changeset 24577
- Timestamp:
- 07/05/2013 11:33:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/heartbeat.js
r24528 r24577 108 108 if ( trigger && ! self.connectionLost ) { 109 109 self.connectionLost = true; 110 $(document).trigger( 'heartbeat-connection-lost' );110 $(document).trigger( 'heartbeat-connection-lost', [error] ); 111 111 } 112 112 } else if ( self.connectionLost ) { … … 137 137 // If nothing to send (nothing is expecting a response), 138 138 // schedule the next tick and bail 139 if ( empty ) {139 if ( empty && ! self.connectionLost ) { 140 140 connecting = false; 141 141 next();
Note: See TracChangeset
for help on using the changeset viewer.