GNOME Bugzilla – Bug 730087
HistoryManager method "lastItem" always returns <undefined>.
Last modified: 2018-07-19 10:33:04 UTC
Created attachment 276478 [details] [review] Patch that makes HistoryManager.lastItem() return the last item in the history or <undefined> if the history is empty. Typo in js/misc/history.js causes HistoryManager.lastItem() to always return <undefined>. The attached patch makes HistoryManager.lastItem() return the last item in the history or <undefined> if the history is empty.
Created attachment 276480 [details] [review] Make HistoryManager.lastItem() never return a value. Since HistoryManager.lastItem sets "_historyIndex" to the length of the array, lastItem() will always return <undefined>. Instead make HistoryManager.lastItem() never return a value.
This was fixed a while ago. *** This bug has been marked as a duplicate of bug 781471 ***