extjs-upload-widget icon indicating copy to clipboard operation
extjs-upload-widget copied to clipboard

"Ext.util.Observable#addEvents" is deprecated.

Open cblack opened this issue 10 years ago • 8 comments

Using Ext 5.0.1, you will get the error: "Ext.util.Observable#addEvents" is deprecated.

See this ticket (http://www.sencha.com/forum/showthread.php?198969-Observable-deprecate-addEvents)

"You don't need the addEvents call. The event will get added the first time it's fired, or the first time a listener is added. Whichever comes first."

I just commented out the addEvent calls to make it work.

You can follow their suggested method of documenting the events like so:

/**
 * @event submit
 * @preventable doSubmit
 * Fires upon successful (Ajax-based) form submission
 * @param {Ext.form.Panel} this This FormPanel
 * @param {Object} result The result object as returned by the server
 * @param {Ext.EventObject} e The event object
 */

cblack avatar Sep 03 '14 20:09 cblack

You are right. That piece of code is there since the addEvents was beeing used :). And I haven't tested the widget with Ext JS 5 yet, I doesn't expect it to work without some modifications.

ivan-novakov avatar Sep 04 '14 04:09 ivan-novakov

What do I need to do in order to get this to work with Ext JS 5?

tvaughan73 avatar Nov 06 '14 20:11 tvaughan73

I'd be very interested in seeing this project modified to work with Ext JS 5.

stitcherooni avatar Nov 14 '14 11:11 stitcherooni

im working on it. soon it will be availible ...

about Ext.util.Observable#addEvents" is deprecated. ... just remove it - in ExtJS 5 - Events added automatically

Grey2k avatar Nov 14 '14 13:11 Grey2k

@Grey2k, @ivan-novakov any chances there will be ExtJS5 version in near future?

Misiu avatar Dec 15 '14 15:12 Misiu

so, all i should have to do is remove addEvents from all files?

tvaughan73 avatar Dec 18 '14 18:12 tvaughan73

yep )

Grey2k avatar Dec 20 '14 13:12 Grey2k

Gyus - its almost done ) Today i start tested it in production and soon make the resease.

its will work only on ExtJS > 5.0.2 cause this bug

selModel : Ext.create('Ext.selection.CheckboxModel', {
                checkOnly: true, // not working 
});

http://www.sencha.com/forum/showthread.php?290630

Grey2k avatar Mar 02 '15 16:03 Grey2k