Skip to content

Commit 498c3a8

Browse files
committed
Don't assume window is the global scope. Closes CodeByZach#119.
1 parent 5be4eae commit 498c3a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pace.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ class Evented
174174
else
175175
i++
176176

177-
window.Pace ?= {}
177+
Pace = window.Pace or {}
178+
window.Pace = Pace
178179

179180
extend Pace, Evented::
180181

0 commit comments

Comments
 (0)