Title: Check if proxy has data? Post by: militia on September 03, 2009, 03:47:41 HI
i have a command that makes pages and this registers mediators when called - it allso calls dataget in the proxy as i dont want to load the data for each page at the begining rather than when the page is made. when the next page loades it removes the mediator. if i make the page again i dont want to load the data again (dataget) - how can i check if the proxy allready has the data so i can skip the dataget part of creating a new page? Thanks for any help offered... Monkey Title: Re: Check if proxy has data? Post by: puremvc on September 03, 2009, 06:04:51 Retrieve the proxy and check its data property. Or if you will have a collection there and are trying to see if a specific item is in the collection, expose a method on the proxy to check for the item by ID.
-=Cliff> |