Revert "namespacing CoffeeScript in the browser, and sniffing the 'require' function instead of the 'exports' object"

This reverts commit 2f6b69b580.
This commit is contained in:
Jeremy Ashkenas
2010-02-17 23:22:05 -05:00
parent 2f6b69b580
commit dec9950649
12 changed files with 26 additions and 26 deletions

View File

@@ -1,13 +1,13 @@
# Set up for both the browser and the server.
if require?
if process?
process.mixin require 'nodes'
path: require 'path'
lexer: new (require('lexer').Lexer)()
parser: require('parser').parser
else
exports: this.CoffeeScript: {}
this.exports: this
lexer: new Lexer()
parser: this.parser
parser: exports.parser
# Thin wrapper for Jison compatibility around the real lexer.
parser.lexer: {