diff options
Diffstat (limited to 'lib/rect.coffee')
| -rw-r--r-- | lib/rect.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rect.coffee b/lib/rect.coffee index d4807cc2..59764d18 100644 --- a/lib/rect.coffee +++ b/lib/rect.coffee @@ -91,5 +91,6 @@ Rect = (rect1, rect2) -> halfOverlapChecker(rect1, rect2) or halfOverlapChecker rect2, rect1 -root = exports ? window +root = exports ? (window.root ?= {}) root.Rect = Rect +extend window, root unless exports? |
