diff --git a/src/utils.js b/src/utils.js index e965c59b6..3f534e4f8 100644 --- a/src/utils.js +++ b/src/utils.js @@ -50,6 +50,9 @@ utils.generateClientInfo = function() { */ utils.wrapPropertyMethod = function(Parent, name, propertyMethod) { var path = propertyMethod.split('.'); + if (path.length > 2) { + throw new Error('wrapPropertyMethod() only supports one level of nesting for propertyMethod'); + } var property = path.shift(); var method = path.pop();