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