PDA

View Full Version : [DUP] [4.2] 'Ext.data.NodeInterface.serialize fails w/ TypeError



LesJ
3 May 2013, 7:46 AM
I'm getting an error:

TypeError: Cannot call method 'push' of undefined


Ext.define('Ext.data.NodeInterface', {
...

/**
* Creates an object representation of this node including its children.
*/
serialize: function() {
var result = Ext.data.writer.Json.prototype.getRecordData(this),
childNodes = this.childNodes,
len = childNodes.length,
s, i;


if (len > 0) {
for (i = 0; i < len; i++) {
s.push(childNodes[i].serialize());
}
}
return result;
}
...

slemmon
3 May 2013, 9:50 AM
Thanks for the bug report!
It looks like the issue is fixed in 4.2.1 Beta.
For reference:
http://www.sencha.com/forum/showthread.php?258645