Permalink
Browse files

refactor inverted if-stat

  • Loading branch information...
1 parent fd25e00 commit b0b09bb509389dfcfb21b352c5e2773c349b1de0 @tj tj committed Oct 10, 2012
Showing with 3 additions and 7 deletions.
  1. +0 −4 Makefile
  2. +2 −2 index.js
  3. +1 −1 package.json
View
@@ -1,4 +0,0 @@
-
-debug.component.js: head.js debug.js tail.js
- cat $^ > $@
-
View
@@ -1,5 +1,5 @@
-if (typeof window != 'undefined') {
+if ('undefined' == typeof window) {
module.exports = require('./debug');
} else {
module.exports = require('./lib/debug');
-}
+}
View
@@ -6,7 +6,7 @@
, "author": "TJ Holowaychuk <tj@vision-media.ca>"
, "dependencies": {}
, "devDependencies": { "mocha": "*" }
- , "main": "index"
+ , "main": "lib/debug.js"
, "browserify": "debug.js"
, "engines": { "node": "*" }
}

0 comments on commit b0b09bb

Please sign in to comment.