Skip to content

Commit

Permalink
inline log()
Browse files Browse the repository at this point in the history
  • Loading branch information
larryng committed May 16, 2012
1 parent 7870ac7 commit 7cbc1e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions coffee/main.coffee
Expand Up @@ -149,12 +149,10 @@ require ['jquery', 'coffee-script', 'nodeutil'], ($, CoffeeScript, nodeutil) ->
repl = new CoffeeREPL $output, $input, $prompt

# replace console.log
log = (args...) ->
console.log = (args...) ->
SAVED_CONSOLE_LOG.apply console, args
repl.print args...

console.log = log

# expose repl as $$
window.$$ = repl

Expand All @@ -174,6 +172,8 @@ require ['jquery', 'coffee-script', 'nodeutil'], ($, CoffeeScript, nodeutil) ->
resizeInput()
$input.focus()

# help

# print header
HEADER = [
"# CoffeeScript v1.3.1 REPL"
Expand Down
5 changes: 2 additions & 3 deletions js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7cbc1e8

Please sign in to comment.