ENART.POLALA.COM
welcome to my space
X
Coffee | Sexuality | Medicine | Elderly Care | Soccer | Insurance | Small Business | Exotic Locations | Related articles

[1.1-1.1.1] Bug in Ext.View::setStore()

Published by: cfz 2010-03-15
  • Actual code

    setStore : function(store, initial){
    if(!initial && this.store){
    this.store.un("datachanged", this.refresh);
    this.store.un("add", this.onAdd);
    this.store.un("remove", this.onRemove);
    this.store.un("update", this.onUpdate);
    this.store.un("clear", this.refresh);
    }
    if(store){
    store.on("datachanged", this.refresh, this);
    store.on("add", this.onAdd, this);
    store.on("remove", this.onRemove, this);
    store.on("update", this.onUpdate, this);
    store.on("clear", this.refresh, this);
    }
    this.store = store;
    if(store){
    this.refresh();
    }
    }


    Should be:

    setStore : function(store, initial){
    if(!initial && this.store){
    this.store.un("datachanged", this.refresh, this);
    this.store.un("add", this.onAdd, this);
    this.store.un("remove", this.onRemove, this);
    this.store.un("update", this.onUpdate, this);
    this.store.un("clear", this.refresh, this);
    }
    if(store){
    store.on("datachanged", this.refresh, this);
    store.on("add", this.onAdd, this);
    store.on("remove", this.onRemove, this);
    store.on("update", this.onUpdate, this);
    store.on("clear", this.refresh, this);
    }
    this.store = store;
    if(store){
    this.refresh();
    }
    }


    Without this in un() method calls the view doesn't unbinds from old store's events.


  • Fixed in SVN. Thanks.


  • Yes, I'm notifying Jack on this.





  • Allergies.. no relief?!?
    Religion in the workplace?
  • mba schools successful essay style
  • indianapolis schools for bright kid with adhd
  • summer chinese schools in hangzhou shanghai beijing
  • ethics philosphy
  • was war civilized in the ancient world
  • college and university dance scholarships
  • what is the correct quote and author for the following quote
  • college student american literature class syllabus 1909 1911
  • california medical licensing
  • societal effect on literature
  • researching law suits
  • lawsuit in bankruptcy
  • united statestreasury department history
  • when did street smith drop the american news company as distributor
  •  
  • american educational credit for studies abroad
  • computer languages
  • is infinity a number
  • search resources available in us in 1965
  • free published ebooks
  • study abroad from america in bombay india
  • trying to find quality tutorial on microsoft powerpoint
  • comparing two graduate journalism schools
  • college graducation rates and information
  • retraining educational grants
  • how to become a teacher of french as a second language
  • notice
  • flag in oregon
  • the glass menagerie
  • the city final episode promo song
  • Search:  
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [1.1-1.1.1] Bug in Ext.View::setStore() , Please add it free.

    About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 enart.polala.com All Rights Reserved
    Site made&Support support@enart.polala.com    E-mail: web@enart.polala.com