Permalink
Browse files

Fixed a Bug that happens when a function have no parameters

  • Loading branch information...
1 parent 562f580 commit 459c2d831934f69bbfbd9d1de06a73cb66f152b8 @Pita committed May 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 parser.js
View
@@ -69,7 +69,7 @@ exports.parseFile = function(baseFolder, filename)
parsedObj.functions[functionName] = {param: []};
//get the params
- var functionParam = functions[i][2].split(",");
+ var functionParam = trimStr(functions[i][2]).length > 0 ? functions[i][2].split(",") : [];
//trim the params and add them to the obj
for(var i in functionParam)

0 comments on commit 459c2d8

Please sign in to comment.