PDA

View Full Version : [FIXED-1136] Ext.Element#addListener() -- normalized option is broken



mystix
19 Jul 2010, 9:26 AM
the Ext.Element#addListener() method accepts a normalized config option (defaults to true) which, when set to false, is supposed to return the raw browser event to the handler function instead of the normalized Ext.EventObject.

the code in ext-core / Sencha Touch doesn't do that currently.

ext-core:


if (o.normalized) {
e = e.browserEvent;
}


Sencha Touch:


if(o.normalized) {
f.push('e = e.browserEvent;');
}


the check should be changed as follows:


if (o.normalized === false) {
// blah blah blah
}

evant
20 Sep 2010, 7:20 AM
Thanks, this has been fixed up.