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;