This commit is contained in:
barisusakli
2015-01-06 23:29:48 -05:00
parent f5b758245f
commit b51127bd9c
3 changed files with 53 additions and 45 deletions

View File

@@ -31,7 +31,7 @@ module.exports = function(Plugins) {
if (typeof data.method === 'string' && data.method.length > 0) {
method = data.method.split('.').reduce(function(memo, prop) {
if (memo !== null && memo[prop]) {
if (memo && memo[prop]) {
return memo[prop];
} else {
// Couldn't find method by path, aborting