mom_pece
15 Nov 2011, 3:25 AM
The code that used to work on PR1:
var rec = this.getBarcodeItemsStore().getAt(recordNo);
rec.save({
scope: this,
.......
now breaks with
"Uncaught TypeError: Cannot use 'in' operator to search for 'listeners' in true"
Trace it down to this bit of code:
superMethod = (method = this.callParent.caller) && (method.$previous ||
((method = method.$owner ? method : method.caller) &&
method.$owner.superclass[method.$name]));
where method.$owner.superclass[method.$name] returns a different constructor (method.$name) than PR1. Somehow the right constructor it should return is in fact method.$owner.superclass['cunstructor'].$previous, but this is the point where I gave up
var rec = this.getBarcodeItemsStore().getAt(recordNo);
rec.save({
scope: this,
.......
now breaks with
"Uncaught TypeError: Cannot use 'in' operator to search for 'listeners' in true"
Trace it down to this bit of code:
superMethod = (method = this.callParent.caller) && (method.$previous ||
((method = method.$owner ? method : method.caller) &&
method.$owner.superclass[method.$name]));
where method.$owner.superclass[method.$name] returns a different constructor (method.$name) than PR1. Somehow the right constructor it should return is in fact method.$owner.superclass['cunstructor'].$previous, but this is the point where I gave up