PureMVC Architects Lounge

PureMVC Manifold => Standard Version => Topic started by: landed on September 28, 2009, 03:43:53



Title: clear proxy
Post by: landed on September 28, 2009, 03:43:53
I tried passing a null ref into setData into a proxy to try and empty it. There is no specific method. What is the best way to empty a proxy it seems that every time i do a setData it is adding to the current proxy item count I need it to replace...

??


Title: Re: clear proxy
Post by: landed on September 30, 2009, 01:16:20
I tried adding this to the Proxy class but it says this function is undefined ! so tried declaring in the IProxy too though this should not be needed same compiler issue ...

public function clearProxy():void
{
         this.data = null;
}

call to undefined method clearProxy.... ???


Title: Re: clear proxy
Post by: landed on September 30, 2009, 01:35:31
Internally in my proxy I was caching the array not clearing it there, don't blame me nor pmvc blame my debug.

 :-\