mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-05 21:33:52 +00:00
differenciate between mainThrottledRefresh and styleThrottledRefresh
This commit is contained in:
parent
8eddb4586a
commit
7f9b5ae8f0
@ -98,8 +98,8 @@ exports.startup = function() {
|
|||||||
}
|
}
|
||||||
styleDeferredChanges = Object.create(null);
|
styleDeferredChanges = Object.create(null);
|
||||||
}
|
}
|
||||||
var mainThrottledRefresh = $tw.perf.report("throttledRefresh",refresh),
|
var mainThrottledRefresh = $tw.perf.report("throttledMainRefresh",refresh),
|
||||||
styleThrottledRefresh = $tw.perf.report("throttledRefresh",styleRefresh);
|
styleThrottledRefresh = $tw.perf.report("throttledStyleRefresh",styleRefresh);
|
||||||
$tw.wiki.addEventListener("change",$tw.perf.report("styleRefresh",function(changes) {
|
$tw.wiki.addEventListener("change",$tw.perf.report("styleRefresh",function(changes) {
|
||||||
throttledRefreshFn(changes,styleDeferredChanges,styleTimerId,styleThrottledRefresh,styleRefresh,false,true);
|
throttledRefreshFn(changes,styleDeferredChanges,styleTimerId,styleThrottledRefresh,styleRefresh,false,true);
|
||||||
}));
|
}));
|
||||||
|
@ -125,8 +125,8 @@ exports.startup = function() {
|
|||||||
widgetNode.refresh(mainDeferredChanges);
|
widgetNode.refresh(mainDeferredChanges);
|
||||||
mainDeferredChanges = Object.create(null);
|
mainDeferredChanges = Object.create(null);
|
||||||
};
|
};
|
||||||
var mainThrottledRefresh = $tw.perf.report("throttledRefresh",mainRefresh),
|
var mainThrottledRefresh = $tw.perf.report("throttledMainRefresh",mainRefresh),
|
||||||
styleThrottledRefresh = $tw.perf.report("throttledRefresh",styleRefresh);
|
styleThrottledRefresh = $tw.perf.report("throttledStyleRefresh",styleRefresh);
|
||||||
styleRefreshHandler = function(changes) {
|
styleRefreshHandler = function(changes) {
|
||||||
throttledRefreshFn(changes,styleDeferredChanges,styleTimerId,styleThrottledRefresh,styleRefresh,false,true);
|
throttledRefreshFn(changes,styleDeferredChanges,styleTimerId,styleThrottledRefresh,styleRefresh,false,true);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user