mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-29 12:59:56 +00:00
Scrollable widget: Fix crash in CI
This commit is contained in:
parent
0cd3c9a8ac
commit
06b1cc4bca
@ -191,6 +191,10 @@ ScrollableWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ScrollableWidget.prototype.updateScrollPositionFromBoundTiddler = function() {
|
ScrollableWidget.prototype.updateScrollPositionFromBoundTiddler = function() {
|
||||||
|
// Bail if we're running on the fakedom
|
||||||
|
if(!this.outerDomNode.scrollTo) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var tiddler = this.wiki.getTiddler(this.scrollableBind);
|
var tiddler = this.wiki.getTiddler(this.scrollableBind);
|
||||||
if(tiddler) {
|
if(tiddler) {
|
||||||
var scrollLeftTo = this.outerDomNode.scrollLeft;
|
var scrollLeftTo = this.outerDomNode.scrollLeft;
|
||||||
|
Loading…
Reference in New Issue
Block a user