Skip to content

Commit

Permalink
[ ! ] Scope Added
Browse files Browse the repository at this point in the history
  • Loading branch information
pnegri committed Feb 27, 2012
1 parent 9ce1f2c commit 1d5a98f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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" : [],
Expand Down

0 comments on commit 1d5a98f

Please sign in to comment.