mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +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);
|
||||
}
|
||||
var mainThrottledRefresh = $tw.perf.report("throttledRefresh",refresh),
|
||||
styleThrottledRefresh = $tw.perf.report("throttledRefresh",styleRefresh);
|
||||
var mainThrottledRefresh = $tw.perf.report("throttledMainRefresh",refresh),
|
||||
styleThrottledRefresh = $tw.perf.report("throttledStyleRefresh",styleRefresh);
|
||||
$tw.wiki.addEventListener("change",$tw.perf.report("styleRefresh",function(changes) {
|
||||
throttledRefreshFn(changes,styleDeferredChanges,styleTimerId,styleThrottledRefresh,styleRefresh,false,true);
|
||||
}));
|
||||
|
@ -125,8 +125,8 @@ exports.startup = function() {
|
||||
widgetNode.refresh(mainDeferredChanges);
|
||||
mainDeferredChanges = Object.create(null);
|
||||
};
|
||||
var mainThrottledRefresh = $tw.perf.report("throttledRefresh",mainRefresh),
|
||||
styleThrottledRefresh = $tw.perf.report("throttledRefresh",styleRefresh);
|
||||
var mainThrottledRefresh = $tw.perf.report("throttledMainRefresh",mainRefresh),
|
||||
styleThrottledRefresh = $tw.perf.report("throttledStyleRefresh",styleRefresh);
|
||||
styleRefreshHandler = function(changes) {
|
||||
throttledRefreshFn(changes,styleDeferredChanges,styleTimerId,styleThrottledRefresh,styleRefresh,false,true);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user