Show More
@@ -109,7 +109,7 b' function(WidgetManager, _, Backbone){' | |||||
109 | // Send buffer if this message caused another message to be |
|
109 | // Send buffer if this message caused another message to be | |
110 | // throttled. |
|
110 | // throttled. | |
111 | if (this.msg_buffer !== null && |
|
111 | if (this.msg_buffer !== null && | |
112 | this.get('msg_throttle') || 3 === this.pending_msgs) { |
|
112 | (this.get('msg_throttle') || 3) === this.pending_msgs) { | |
113 | var data = {method: 'backbone', sync_method: 'update', sync_data: this.msg_buffer}; |
|
113 | var data = {method: 'backbone', sync_method: 'update', sync_data: this.msg_buffer}; | |
114 | this.comm.send(data, callbacks); |
|
114 | this.comm.send(data, callbacks); | |
115 | this.msg_buffer = null; |
|
115 | this.msg_buffer = null; | |
@@ -178,7 +178,7 b' function(WidgetManager, _, Backbone){' | |||||
178 | var callbacks = options.callbacks || this.callbacks(); |
|
178 | var callbacks = options.callbacks || this.callbacks(); | |
179 |
|
179 | |||
180 | // Check throttle. |
|
180 | // Check throttle. | |
181 | if (this.pending_msgs >= this.get('msg_throttle') || 3) { |
|
181 | if (this.pending_msgs >= (this.get('msg_throttle') || 3)) { | |
182 | // The throttle has been exceeded, buffer the current msg so |
|
182 | // The throttle has been exceeded, buffer the current msg so | |
183 | // it can be sent once the kernel has finished processing |
|
183 | // it can be sent once the kernel has finished processing | |
184 | // some of the existing messages. |
|
184 | // some of the existing messages. |
General Comments 0
You need to be logged in to leave comments.
Login now