Skip to content

Commit

Permalink
Don't assume window is the global scope. Closes CodeByZach#119.
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbloom committed Sep 7, 2014
1 parent 5be4eae commit 498c3a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pace.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ class Evented
else
i++

window.Pace ?= {}
Pace = window.Pace or {}
window.Pace = Pace

extend Pace, Evented::

Expand Down

0 comments on commit 498c3a8

Please sign in to comment.