PDA

View Full Version : [DUP] [2.1] Ext.data.Model leaks a field



mankz
14 Nov 2012, 8:40 AM
Open console:


Ext.define('foo', {
extend : 'Ext.data.Model' }).prototype.fields.length

Expect 0, get 1. Nice candidate for a unit test.

mitchellsimoens
14 Nov 2012, 9:45 AM
You're duping yourself: http://www.sencha.com/forum/showthread.php?247522 :)

mankz
14 Nov 2012, 10:05 AM
Ups, you're right. Time to get some sleep. :)