PDA

View Full Version : [CLOSED]4.0.1 Ext.view.View 'onBeforeItemundefined'"



harrydeluxe
19 May 2011, 8:50 AM
Bug in line: 456. Looks in map[] for a undefined function.

My workaround:

if (newType === false || !map.hasOwnProperty(newType))
{
return false;
}

PSB
19 May 2011, 11:41 PM
+1. Help please!

me["onBeforeItem" + map[newType]] is not a function
http://localhost:63907/Application/Lib/ext-4.0.1/ext-all-debug.js
Line 66872

evant
20 May 2011, 12:22 AM
http://www.sencha.com/forum/showthread.php?134124-CLOSED-4.0.1-Ext.grid.plugin.RowEditing-bug-onBeforeItemundefined

It's being looked into.

cwmerkel
3 Jun 2011, 10:29 AM
I suggest adding an additional clause to the check in in processUIEvent

if ((!map[newType]) || <---- ADDED
(me['onBeforeItem' + map[newType]](record, item, index, e) === false) ||
(me.fireEvent('beforeitem' + newType, me, record, item, index, e) === false) ||
(me['onItem' + map[newType]](record, item, index, e) === false)
) {
return false;
}