Comparing version 0.0.3 to 0.0.4
@@ -8,21 +8,21 @@ // Generated by CoffeeScript 1.6.3 | ||
module.exports = function() { | ||
var sv; | ||
var sv, x; | ||
sv = stackval(); | ||
return { | ||
attach: function(f) { | ||
return function() { | ||
var collected, f2; | ||
collected = []; | ||
f2 = sv.attach(f, function() { | ||
return collected; | ||
}); | ||
return collected.concat([f2.apply(null, arguments)]); | ||
}; | ||
}, | ||
collect: function(value) { | ||
return sv.get().push(value); | ||
} | ||
x = function(value) { | ||
return sv.get().push(value); | ||
}; | ||
x.attach = function(f) { | ||
return function() { | ||
var collected, f2; | ||
collected = []; | ||
f2 = sv.attach(f, function() { | ||
return collected; | ||
}); | ||
return collected.concat([f2.apply(null, arguments)]); | ||
}; | ||
}; | ||
x.collect = x; | ||
return x; | ||
}; | ||
}).call(this); |
{ | ||
"name": "collector", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Aldo Bucchi <aldo.bucchi@gmail.com>", |
1115