--- orig/js/misc/history.js
+++ new/js/misc/history.js
@@ -68,8 +68,6 @@
             this._historyIndex = this._history.length;
             this._indexChanged();
         }
-
-        return this._historyIndex[this._history.length];
     },
 
     addItem: function(input) {
