Permalink
Browse files

Fixed issue #1

  • Loading branch information...
josephg committed Jan 16, 2012
1 parent f84e013 commit 7d9068c2f49af89ccca94bda2c39527387b1870c
Showing with 9 additions and 9 deletions.
  1. +4 −4 cp.js
  2. +1 −1 cp.min.js
  3. +4 −4 lib/chipmunk.js
View
8 cp.js
@@ -31,14 +31,14 @@ Object.create = Object.create || function(o) {
var cp;
if(typeof exports === 'undefined'){
cp = {};
+
+ if(typeof window === 'object'){
+ window.cp = cp;
+ }
} else {
cp = exports;
}
-if(typeof window === 'object'){
- window.cp = cp;
-}
-
var assert = function(value, message)
{
if (!value) {
Oops, something went wrong.

0 comments on commit 7d9068c

Please sign in to comment.