pinafore/src/routes/_utils
Stephane Zermatten 2656e11bb0 fix: Follow-up for pull request #870 (#910)
* Cache main-nav in scrollIntoView.js.

This change avoids continuously calling document.getElementById for the
same element.

* Fix firstVisibleElementIndex to always return a dictionary.

Before this change, firstVisibleElementIndex would return -1 if it
doesn't find anything. This made no sense since this function returns a
dictionary on success.

With this change, the function always returns a dictionary with the
expected keys.

* lint fix
2019-01-26 10:14:27 -08:00
..
ajax.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
arrays.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
asyncModules.js feat: Add support for keyboard shortcuts (#870) 2019-01-13 10:03:29 -08:00
asyncPolyfills.js perf: download and cache polyfills on-the-fly (#814) 2018-12-15 17:13:46 -08:00
base64.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
checkDomAncestors.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
classname.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
coordsToPercent.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
decodeImage.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
delegate.js perf: only run getSelection() check if we have to (#817) 2018-12-15 19:21:14 -08:00
doubleRAF.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
emojifyText.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
emojiRegex.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
eventBus.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
events.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
formatters.js feat: date title shows absolute date (#890) 2019-01-13 15:56:39 -08:00
fullscreen.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
getMainTopMargin.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
handleRegex.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
historyEvents.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
htmlToPlainText.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
isMobile.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
loadCSS.js feat: add full emoji picker using emoji-mart (#836) 2018-12-18 00:43:51 -08:00
loadingMask.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
loadPolyfills.js perf: download and cache polyfills on-the-fly (#814) 2018-12-15 17:13:46 -08:00
lodash-lite.js perf: use lodash-lite for some functions (#853) 2018-12-23 10:10:16 -08:00
marks.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
massageUserText.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
measureText.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
once.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
RealmStore.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
removeEmoji.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
replaceEmoji.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
reselect.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
resize.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
runMediumPriorityTask.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
safeLocalStorage.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
scheduleIdleTask.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
scrollContainer.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
scrollIntoView.js fix: Follow-up for pull request #870 (#910) 2019-01-26 10:14:27 -08:00
serviceWorkerClient.js perf: load Toast asynchronously (#851) 2018-12-22 15:37:51 -08:00
setFavicon.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
shortcuts.js fix: fix Alt key in keyboard shortcuts (#902) 2019-01-19 15:50:39 -08:00
smoothScroll.js feat: Add support for keyboard shortcuts (#870) 2019-01-13 10:03:29 -08:00
sorting.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
statusHtmlToPlainText.js fix: preserve newlines correctly in delete-and-redraft (#845) 2018-12-19 00:57:56 -08:00
strings.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
sync.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
testStorage.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
themeEngine.js fix: fix unnecessary request for theme-undefined.css (#852) 2018-12-22 15:37:56 -08:00
thunk.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00
urlRegex.js fix: update Sapper to latest (#775) 2018-12-11 07:31:48 -08:00