mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-05 08:18:06 +00:00
Fix scrollable widget not to crash on the server
This commit is contained in:
@@ -20,6 +20,7 @@ var ScrollableWidget = function(parseTreeNode,options) {
|
||||
this.addEventListeners([
|
||||
{type: "tw-scroll", handler: "handleScrollEvent"}
|
||||
]);
|
||||
if($tw.browser) {
|
||||
this.requestAnimationFrame = window.requestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame ||
|
||||
window.mozRequestAnimationFrame ||
|
||||
@@ -34,6 +35,7 @@ var ScrollableWidget = function(parseTreeNode,options) {
|
||||
function(id) {
|
||||
window.clearTimeout(id);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user