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

This commit is contained in:
Jeremy Ashkenas
2010-02-17 23:15:37 -05:00
parent ff1fd97924
commit 2f6b69b580
12 changed files with 26 additions and 26 deletions

View File

@@ -854,7 +854,7 @@ print reverse 'tpircseeffoc'</textarea>
var source = document.getElementById('repl_source').value;
var js = '';
try {
js = compile(source, {no_wrap: true});
js = CoffeeScript.compile(source, {no_wrap: true});
} catch(error) {
alert(error);
}