Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[ ! ] Scope Added

  • Loading branch information...
commit 1d5a98f4522337faa8350c22092d3c24bcd920d4 1 parent 9ce1f2c
@pnegri authored
Showing with 5 additions and 2 deletions.
  1. +4 −1 lib/main.coffee
  2. +1 −1  package.json
View
5 lib/main.coffee
@@ -3,10 +3,13 @@ Path = require 'path'
Async = require 'async'
class Tasks
- @do: ( methods ) ->
+ @do: ( methods, scope={} ) ->
that_methods = methods
new (
() ->
+ for index of scope
+ console.log index
+ this[index] = scope[index]
methods_array = []
original_methods = that_methods
that = this
View
2  package.json
@@ -1,7 +1,7 @@
{
"name" : "arcabouco-tasks",
"description" : "async handlers for arcabouco-js",
- "version" : "0.1.1",
+ "version" : "0.1.2",
"author" : "Patrick Negri <patrick@iugu.com.br>",
"homepage": "http://github.com/pnegri/arcabouco-js-tasks",
"contributors" : [],
Please sign in to comment.
Something went wrong with that request. Please try again.