Jan 27, 2015, 9:35 AM
[FIXED] [#659] MultiUpload unhandled exception when hover over "Browse..." button (SVN 6281)
Hi,
In the example https://examples3.ext.net/Examples/M...ad/Basic/Grid/ when you hover mouse cursor over the Browse button, unhanded exception is thrown.
The exception is thrown in function "is" of Ext.dom.Element.
Below is my workaround for this problem but I think it might not be the real nature of the problem.
In the example https://examples3.ext.net/Examples/M...ad/Basic/Grid/ when you hover mouse cursor over the Browse button, unhanded exception is thrown.
The exception is thrown in function "is" of Ext.dom.Element.
is: function(selector) {
var dom = this.dom,
is;
if (!selector) {
is = true;
} else if (!dom.tagName) {
is = false;
} else if (Ext.isFunction(selector)) {
is = selector(dom);
} else {
// EXCEPTION IS THROWN HERE...
is = dom[Ext.supports.matchesSelector](selector);
}
return is;
}
Below is my workaround for this problem but I think it might not be the real nature of the problem.
Ext.define("App.Patches.dom.Element", {
override: 'Ext.dom.Element',
is: function (selector) {
var dom = this.dom,
is;
if (!selector) {
is = true;
} else if (!dom.tagName) {
is = false;
} else if (Ext.isFunction(selector)) {
is = selector(dom);
} else {
// WORKAROUND / FIX
if (dom[Ext.supports.matchesSelector]) {
is = dom[Ext.supports.matchesSelector](selector);
}
else {
is = false;
}
}
return is;
}
});
Last edited by Daniil; Mar 03, 2015 at 8:47 AM.
Reason: [FIXED] [#659]