Skip to content

Commit b994bdf

Browse files
committed
Don't assume window is the global scope. Closes CodeByZach#119.
1 parent 9890aee commit b994bdf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)