PDA

View Full Version : [FIXED]Ext.data.Model.destroy() missing



icflorescu
4 Mar 2011, 12:45 PM
This is probably a well known issue but I just wanted to add a reminder...

Calling destroy() on a model instance does nothing and throws no error; it just ends up in an empty function call in Ext.Base.

Hopefully we'll see it implemented in the next dev preview ;)

Greendrake
5 Mar 2011, 12:21 AM
Yes it has been reported (http://www.sencha.com/forum/showthread.php?125106-Model.destroy%28%29-does-not-work). I hoped it will be implemented in PR3 but it's not.

wizkid
5 Mar 2011, 2:34 PM
+1 From me, to get this fixed in the next preview (release 4)! I need this to complete my proof of concept.

evant
9 Mar 2011, 6:18 AM
A destroy method has been added.

icflorescu
13 Mar 2011, 4:50 AM
Excellent news, thank you!

originator
2 May 2011, 10:15 AM
Hi,

I'm trying Ext.data.Model.

Docs say that Model.destroy uses DELETE request, but actually it uses GET request so I can't distinguish load and destroy on server side. Is it a bug or I'm doing something wrong?

ExtJS version is 4.0.0.

thank you.