Permalink
Browse files

Fix for Coco removing array concat sugar in >0.7.1

  • Loading branch information...
1 parent 7772235 commit 6f8cbe2fd2d64d046d8853f1677cd450e6a8e1eb @dsc committed Sep 4, 2012
Showing with 105 additions and 103 deletions.
  1. +2 −2 compiler.co
  2. +103 −101 compiler.js
View
@@ -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
Oops, something went wrong.

0 comments on commit 6f8cbe2

Please sign in to comment.