diff --git a/src/containers/editable-container.js b/src/containers/editable-container.js index aae6148..37ea578 100644 --- a/src/containers/editable-container.js +++ b/src/containers/editable-container.js @@ -92,6 +92,11 @@ Applied as jQuery method. splitOptions: function() { this.containerOptions = {}; this.formOptions = {}; + + if(!$.fn[this.containerName]) { + throw new Error(this.containerName + ' not found. Have you included corresponding js file?'); + } + var cDef = $.fn[this.containerName].defaults; //keys defined in container defaults go to container, others go to form for(var k in this.options) {