Skip to content

Commit

Permalink
fix argumentify
Browse files Browse the repository at this point in the history
  • Loading branch information
llafuente committed Jun 17, 2014
1 parent 012a3b8 commit ec524b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
23 changes: 0 additions & 23 deletions dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,29 +220,6 @@ for (cls in files) {
}
});

//
// - debug
//
var output = falafel(src, function (node) {
// anti-nan
if (isFunction(node)) {
var args = getArguments(node, valid_arguments),
fn_txt = node.body.source().trim().substring(1),
validations = [],
i;

for (i in args) {
if (validators[args[i].type] && args[i].name.indexOf("out") !== 0) {
validations.push(validators[args[i].type].replace(/\%var\%/g, args[i].name));
}
}

node.body.update("{\n" + validations.join("\n") + fn_txt);
}
});

fs.writeFileSync(files[cls].debug_file, output, "utf-8");

// DEFINES
for (i in mod_required) {
if ("function" === typeof mod_required[i] && !methods[i]) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"object-enhancements": "*"
},
"devDependencies": {
"argumentify": "*",
"tap": "0.4.9",
"grunt-contrib-watch": "0.6.1",
"browserify": "4.1.6",
Expand Down

0 comments on commit ec524b6

Please sign in to comment.