Bug 758574 - Port |Bug 662178 - Simplify timed callbacks| to SeaMonkey. r=Neil
authorJens Hatlak <jh@junetz.de>
Mon, 04 Nov 2013 16:50:38 +0100
changeset 16860 6e39f5e0dfd62bb512d4adb04ad83f1aed64ee2d
parent 16859 7551898bf2698b94aac4b48bf36f5d718c328c3c
child 16861 71bcb1c5da5d0abb0f7adcf23c71fa2ffbfd864a
push id1074
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:47:23 +0000
treeherdercomm-beta@6b791b5369ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil
bugs758574, 662178
Bug 758574 - Port |Bug 662178 - Simplify timed callbacks| to SeaMonkey. r=Neil a=Callek for CLOSED TREE
suite/common/sync/syncQuota.js
--- a/suite/common/sync/syncQuota.js
+++ b/suite/common/sync/syncQuota.js
@@ -65,17 +65,17 @@ let gSyncQuota = {
   onAccept: function onAccept() {
     let engines = gUsageTreeView.getEnginesToDisable();
     for each (let engine in engines) {
       Weave.Service.engineManager.get(engine).enabled = false;
     }
     if (engines.length) {
       // The 'Weave' object will disappear once the window closes.
       let Service = Weave.Service;
-      Weave.Utils.delay(function() Service.sync(), 0);
+      Weave.Utils.nextTick(function() { Service.sync(); });
     }
     return true;
   },
 
   convertKB: function convertKB(value) {
     return DownloadUtils.convertByteUnits(value * 1024);
   }