mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-30 18:14:32 +00:00
d2b03abe43
We added this more as an experiment because we couldn't reliably figure out what makes later .offset() calls fail. After looking into the actual jQuery source code I realized the only way .offset() can return undefined is when .length is zero. Which means the two checks are redundant and one can be removed. In case an element is not attached to the document an object with { top: 0, left: 0 } is returned. Bug: T342556 Change-Id: I6265fd27b3102a9cfe853a9c0e11063b76cf0b7b |
||
---|---|---|
.. | ||
.eslintrc.json | ||
ext.RevisionSlider.Api.js | ||
ext.RevisionSlider.DiffPage.js | ||
ext.RevisionSlider.HelpButtonView.js | ||
ext.RevisionSlider.HelpDialog.js | ||
ext.RevisionSlider.init.js | ||
ext.RevisionSlider.lazy.js | ||
ext.RevisionSlider.lazy.less | ||
ext.RevisionSlider.less | ||
ext.RevisionSlider.noscript.css | ||
ext.RevisionSlider.Pointer.js | ||
ext.RevisionSlider.PointerLine.js | ||
ext.RevisionSlider.PointerView.js | ||
ext.RevisionSlider.Revision.js | ||
ext.RevisionSlider.RevisionList.js | ||
ext.RevisionSlider.RevisionListView.js | ||
ext.RevisionSlider.Settings.js | ||
ext.RevisionSlider.Slider.js | ||
ext.RevisionSlider.SliderArrowView.js | ||
ext.RevisionSlider.SliderView.js | ||
ext.RevisionSlider.util.js |