Fix to allow virtual methods without parameters #41

Merged
merged 1 commit into from Apr 23, 2012
View
2 lib/nodes/virtual_method.js
@@ -118,7 +118,7 @@
};
VirtualMethod.prototype.getParameters = function() {
- return this.doc.params;
+ return this.doc.params || [];
};
VirtualMethod.prototype.getCoffeeScriptSource = function() {};
View
2 src/nodes/virtual_method.coffee
@@ -114,7 +114,7 @@ module.exports = class VirtualMethod extends Node
#
# @param [Array<Parameter>] the method parameters
#
- getParameters: -> @doc.params
+ getParameters: -> @doc.params or []
# Get the method source in CoffeeScript
#