There's a minor incompatibility in the clearManagedListeners method. In 4.x, this method has no return value, but in 5.0 it may return 'this'.


Code:



Ext.define('Ext.mixin.Observable', {
...
clearManagedListeners: function(object) {
...
if (object) {
...
delete managedListeners[id];
// return this;
return; // <-- use just return w/o this?
}

for (id in managedListeners) {
if (managedListeners.hasOwnProperty(id)) {
this.clearManagedListeners(id);
}
}
},
...