PDA

View Full Version : [DUP] extending Ext.app.Application and ie8



dimitriliberman
16 Apr 2013, 3:05 PM
Hello,
I am using ExtJs 4.2 and have created very simple project. that has BaseApplication that extends Ext.app.Application. My sample application extends BaseApplication. Sample application has viewport with basic html. I am attaching sample zip file. If you unzip and drop content under web server (I am using tomcat 7)
When i execute http://localhost:8080/myapp/javascript1/test.html it works in both chrome and firefox, but when i am executing it in IE8 i am getting error: 'undefined' is null or not an object
I checked my code for extra commas and did not find them. When debugging with Developer Tools in IE8
Code breaks at if (a.hasOwnProperty(k)), i checked value of a and it is undefined, k = "app".
But before that there is a check for a===null return this....
flexSetter: function(fn) {
return function(a, b) {
var k, i;


if (a === null) {
return this;
}


if (typeof a !== 'string') {
for (k in a) {
if (a.hasOwnProperty(k)) {
fn.call(this, k, a[k]);
}
}


if (Ext.enumerables) {
for (i = Ext.enumerables.length; i--;) {
k = Ext.enumerables[i];
if (a.hasOwnProperty(k)) {
fn.call(this, k, a[k]);
}
}
}
} else {
fn.call(this, a, b);
}


return this;
};
},
It seems that either i am doing something wrong or code above does not consider when a = undefined.
Please advice.
thank you

slemmon
17 Apr 2013, 1:54 PM
Thank you for letting us know about this issue!
Looks like it's related to a reported bug that we're got in the tracker.
http://www.sencha.com/forum/showthread.php?261312