Permalink
Browse files

Use Cmd::apply (Fixes #34)

  • Loading branch information...
1 parent 63b5dea commit 5751b9f331fdf39721695167b53936ff415e8a63 @CoderPuppy CoderPuppy committed Nov 15, 2012
Showing with 6 additions and 22 deletions.
  1. +2 −8 lib/arg.js
  2. +2 −8 lib/opt.js
  3. +1 −3 src/arg.coffee
  4. +1 −3 src/opt.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -127,6 +127,4 @@ exports.Arg = class Arg
@param {Array} args
@returns {COA.Arg} this instance (for chainability)
###
- apply: (fn, args...) ->
- fn.apply this, args
- @
+ apply: Cmd::apply
View
@@ -240,6 +240,4 @@ exports.Opt = class Opt
@param {Array} args
@returns {COA.Opt} this instance (for chainability)
###
- apply: (fn, args...) ->
- fn.apply this, args
- @
+ apply: Cmd::apply

0 comments on commit 5751b9f

Please sign in to comment.