]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Add jsdoc to scrollTo functions
authorDaniel Imms <daimms@microsoft.com>
Sun, 9 Oct 2016 20:20:33 +0000 (13:20 -0700)
committerDaniel Imms <daimms@microsoft.com>
Sun, 9 Oct 2016 20:20:33 +0000 (13:20 -0700)
src/xterm.js

index ecfe466c610f7273b43a091299fdca83df06bef2..e9b3f17dc654a748bb4341aef5efee14c94f1af0 100644 (file)
@@ -1315,10 +1315,16 @@ Terminal.prototype.scrollPages = function(pageCount) {
   this.scrollDisp(pageCount * (this.rows - 1));
 }
 
+/**
+ * Scrolls the display of the terminal to the top.
+ */
 Terminal.prototype.scrollToTop = function() {
   this.scrollDisp(-this.ydisp);
 }
 
+/**
+ * Scrolls the display of the terminal to the bottom.
+ */
 Terminal.prototype.scrollToBottom = function() {
   this.scrollDisp(this.ybase - this.ydisp);
 }