1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-02 10:13:16 +00:00
This commit is contained in:
Jeremy Ruston 2012-01-17 14:36:37 +00:00
parent 0297de3648
commit 73236d72f5

View File

@ -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);