Comparing version 0.0.3 to 0.0.4
@@ -5,8 +5,8 @@ var _ = require('underscore'); | ||
store: function (spec) { | ||
var result = {}; | ||
_.each(_.keys(spec), function (key) { | ||
result[key] = _.isFunction(spec[key]) ? spec[key]() : spec[key]; | ||
var obj = _.extend({}, spec); | ||
_.each(_.keys(obj), function(key) { | ||
obj[key] = _.bind(obj[key], obj); | ||
}); | ||
return result; | ||
return obj; | ||
} | ||
}; |
{ | ||
"name": "harukaze", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A reactive flux architecture implementation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3872