From b8d0d78f81fcf26f62b1a9f18a082fbd951b999a Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Wed, 2 Dec 2015 11:19:15 -0800 Subject: [PATCH] Add delays so firefox can catch up --- client/commonFramework/update-preview.js | 2 +- client/iFrameScripts.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/commonFramework/update-preview.js b/client/commonFramework/update-preview.js index 7e41d6361d..ea30f4abf2 100644 --- a/client/commonFramework/update-preview.js +++ b/client/commonFramework/update-preview.js @@ -61,7 +61,7 @@ window.common = (function(global) { .first() // the delay here is to give code within the iframe // control to run - .delay(100); + .delay(400); }) .map(() => code); }; diff --git a/client/iFrameScripts.js b/client/iFrameScripts.js index e3ec1290a0..d670ace6aa 100644 --- a/client/iFrameScripts.js +++ b/client/iFrameScripts.js @@ -40,7 +40,8 @@ window.$(document).ready(function() { return Rx.Observable.throw(window.__err); } - return Rx.Observable.from(tests) + return Rx.Observable.from(tests, null, null, Rx.Scheduler.default) + .delay(100) .map(test => { const userTest = {}; common.appendToOutputDisplay('');