Fossil SCM

Minor internal JS API doc clarification.

stephan 2021-04-07 15:10 trunk
Commit bcc9a6ea3ec14467a3ffe8f32fface9e8efe40684da1043676255c9954b1bf80
1 file changed +3 -3
+3 -3
--- src/chat.js
+++ src/chat.js
@@ -226,13 +226,13 @@
226226
}else{
227227
eMsg.scrollIntoView(false);
228228
}
229229
return this;
230230
},
231
- /* Injects element e as a new row in the chat, at the top of the
232
- list if atEnd is falsy, else at the end of the list, before
233
- the load-history widget. */
231
+ /* Injects element e as a new row in the chat, at the oldest end
232
+ of the list if atEnd is truthy, else at the newest end of the
233
+ list. */
234234
injectMessageElem: function f(e, atEnd){
235235
const mip = atEnd ? this.e.loadOlderToolbar : this.e.messageInjectPoint,
236236
holder = this.e.messagesWrapper,
237237
prevMessage = this.e.newestMessage;
238238
if(atEnd){
239239
--- src/chat.js
+++ src/chat.js
@@ -226,13 +226,13 @@
226 }else{
227 eMsg.scrollIntoView(false);
228 }
229 return this;
230 },
231 /* Injects element e as a new row in the chat, at the top of the
232 list if atEnd is falsy, else at the end of the list, before
233 the load-history widget. */
234 injectMessageElem: function f(e, atEnd){
235 const mip = atEnd ? this.e.loadOlderToolbar : this.e.messageInjectPoint,
236 holder = this.e.messagesWrapper,
237 prevMessage = this.e.newestMessage;
238 if(atEnd){
239
--- src/chat.js
+++ src/chat.js
@@ -226,13 +226,13 @@
226 }else{
227 eMsg.scrollIntoView(false);
228 }
229 return this;
230 },
231 /* Injects element e as a new row in the chat, at the oldest end
232 of the list if atEnd is truthy, else at the newest end of the
233 list. */
234 injectMessageElem: function f(e, atEnd){
235 const mip = atEnd ? this.e.loadOlderToolbar : this.e.messageInjectPoint,
236 holder = this.e.messagesWrapper,
237 prevMessage = this.e.newestMessage;
238 if(atEnd){
239

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button