PDA

View Full Version : mon gone?



andy13c72back
8 Mar 2011, 6:45 PM
I cannot see any definition of method 'mon' in the api doc, is it replaced by some other method?

thx

elishnevsky
8 Mar 2011, 7:57 PM
Not gone. It's an alias for addManagedListener (http://docs.sencha.com/new/ext-js/4-0/api/Ext.util.Observable#method-addManagedListener), just not documented.

mdavis6890
9 Mar 2011, 11:48 AM
mon is an alias to addManagedListener.

Line 614 in Ext.util.Observable:




this.createAlias({
on: 'addListener',
un: 'removeListener',
mon: 'addManagedListener',
mun: 'removeManagedListener'
});