Skip to content

Commit

Permalink
publish error, params clone error
Browse files Browse the repository at this point in the history
  • Loading branch information
apla committed Aug 23, 2013
1 parent eb56f42 commit 6ce0c0a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dataflo.ws",
"description": "Zero-code JSON config-based workflow engine for Node, PhoneGap and browser.",
"version": "0.0.44",
"version": "0.0.47",
"keywords": [
"flow-based-programming",
"workflow",
Expand Down
3 changes: 2 additions & 1 deletion task/every.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ util.extend(EveryTask.prototype, {
index: index,
array: array
};
var dict = self.getDict();
// dict the same between every, so we need to host a local copy
var dict = util.extend (true, {}, self.getDict());
dict.every = every;

var wf = new workflow({
Expand Down
3 changes: 1 addition & 2 deletions workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ var workflow = module.exports = function (config, reqParam) {

function createDict () {
// TODO: very bad idea: reqParam overwrites self.data
var dict = util.extend (true, {}, self.data);
dict = util.extend(true, dict, reqParam);
var dict = util.extend(true, self.data, reqParam);
dict.global = $global;
dict.appMain = $mainModule.exports;

Expand Down

0 comments on commit 6ce0c0a

Please sign in to comment.