Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: clear proxy  (Read 8633 times)
landed
Full Member
***
Posts: 37


View Profile Email
« 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...

??
Logged
landed
Full Member
***
Posts: 37


View Profile Email
« Reply #1 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.... ???
Logged
landed
Full Member
***
Posts: 37


View Profile Email
« Reply #2 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.

 :-\
Logged
Pages: [1]
Print