Results 1 to 6 of 6

Thread: how to complete destroy store (extjs 4.1)

  1. #1
    Sencha User
    Join Date
    Feb 2010
    Location
    Figueres (Spain)
    Posts
    370
    Answers
    15
    Vote Rating
    5
      1  

    Default how to complete destroy store (extjs 4.1)

    how can i complete destroy an Store instance ?
    i mean, destroy the object, unregister from storemanager, destroy all nested proxy, data loaded, etc...

    Thanks

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124
    Vote Rating
    93
      -1  

    Default try to use destroyStore()

    Hi maneljn,

    you can use destroyStore() method, however it is private method and does not show in docs. But it looks like destroy() method in extjs3.4
    Code:
    yourStore.destroyStore();
    for more help see - http://stackoverflow.com/questions/1...s-in-extjs-4-1
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Feb 2010
    Location
    Figueres (Spain)
    Posts
    370
    Answers
    15
    Vote Rating
    5
      0  

    Default

    I tried mystore.destroyStore() and after if i put console.log(mystore) , it's still there.

    Manel

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716
    Vote Rating
    505
      0  

    Default

    Have a look at:
    http://www.sencha.com/forum/showthread.php?212134

    Regards,
    Scott.

  5. #5
    Sencha User
    Join Date
    Feb 2010
    Location
    Figueres (Spain)
    Posts
    370
    Answers
    15
    Vote Rating
    5
      0  

    Default

    thanks Scott, but how can i know what are all references to the store , for delete it, to make store eligible for garbage collection ??

  6. #6
    Sencha Premium Member
    Join Date
    Jan 2008
    Location
    San Francisco Bay, CA
    Posts
    45
    Answers
    1
    Vote Rating
    3
      0  

    Question public API

    Hi, could Sencha provide a public API to destroy a store and it's cached data?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •