Skip to content

Commit

Permalink
Fix for Coco removing array concat sugar in >0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dsc committed Sep 4, 2012
1 parent 7772235 commit 6f8cbe2
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 103 deletions.
4 changes: 2 additions & 2 deletions compiler.co
Expand Up @@ -352,11 +352,11 @@ class exports.Compiler extends EventEmitter
opts = @options(info_opts)
else if @options or info_opts
opts = {} <<< @options <<< info_opts
args = [text] + (if opts? then [opts] else [])
args = [text].concat(if opts? then [opts] else [])

if fn = @compile
fn = @module[fn] if typeof fn is not 'function'
fn.apply this, args + [cb]
fn.apply this, args.concat [cb]
else if fn = @compileSync
fn = @module[fn] if typeof fn is not 'function'
try
Expand Down

0 comments on commit 6f8cbe2

Please sign in to comment.