mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 12:19:11 +00:00
Note
This commit is contained in:
parent
0297de3648
commit
73236d72f5
@ -289,6 +289,7 @@ utils.stitchElement = function(element,attributes,options) {
|
||||
utils.nextTick = function(fn) {
|
||||
/*global window: false */
|
||||
if(typeof window !== "undefined") {
|
||||
// Apparently it would be faster to use postMessage - http://dbaron.org/log/20100309-faster-timeouts
|
||||
window.setTimeout(fn,4);
|
||||
} else {
|
||||
process.nextTick(fn);
|
||||
|
Loading…
Reference in New Issue
Block a user