Hi folks,
we use Ruby on Rails as our back-end and we recently tried to migrate from 4.0.2a to 4.1.1. We didn't run into big problems, except for a very strange one. When we run our integration tests with cucumber and capybara-webkit as a driver, we always get the following error:
Code:
http://localhost:3003/extjs/ext-all-dev.js|5462|TypeError: Result of expression 'prototype.configClass' [Ext.Base] is not a constructor.
Here's the code, that fails:
Code:
if (parent.$onExtended) {
this.$onExtended = parent.$onExtended.slice();
}
prototype.config = new prototype.configClass(); // This is line 5462
prototype.initConfigList = prototype.initConfigList.slice();
prototype.initConfigMap = Ext.clone(prototype.initConfigMap);
prototype.configMap = Ext.Object.chain(prototype.configMap);
I know, that this is usually a result of missing js files, but shouldn't including the ext-all-dev.js already load everything? Btw, I don't get this error when I test the app by hand with firefox or I use a non headless driver like selenium.
I also debugged into it a bit, and when it throws the error, prototype.configClass() returns a string 'Ext.Base', not a class.
I know, this is a very odd error, but maybe someone out there has an idea.
Thanks for your help guys,
cheers,
scho