mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 20:29:10 +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) {
|
utils.nextTick = function(fn) {
|
||||||
/*global window: false */
|
/*global window: false */
|
||||||
if(typeof window !== "undefined") {
|
if(typeof window !== "undefined") {
|
||||||
|
// Apparently it would be faster to use postMessage - http://dbaron.org/log/20100309-faster-timeouts
|
||||||
window.setTimeout(fn,4);
|
window.setTimeout(fn,4);
|
||||||
} else {
|
} else {
|
||||||
process.nextTick(fn);
|
process.nextTick(fn);
|
||||||
|
Loading…
Reference in New Issue
Block a user