From 3c22a30664bad1cf0167757e3b2244026f408006 Mon Sep 17 00:00:00 2001 From: Matt Scheurich Date: Mon, 17 Sep 2018 16:49:34 +0200 Subject: [PATCH] removed window object --- lib/schedule.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/schedule.js b/lib/schedule.js index 0e06b02..f2f3850 100644 --- a/lib/schedule.js +++ b/lib/schedule.js @@ -4,12 +4,12 @@ var each = require('@ndhoule/each'); var defaultClock = { setTimeout: function(fn, ms) { - return window.setTimeout(fn, ms); + return setTimeout(fn, ms); }, clearTimeout: function(id) { - return window.clearTimeout(id); + return clearTimeout(id); }, - Date: window.Date + Date: Date }; var clock = defaultClock;