You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TiTouchDB sync adapter emits the fetch event before the collection is updated. I put that event trigger in the adapter in the same place as a it occurs in the sql adapter so both would function in the same way.
I did a bit of searching and re-read the Backbone collection documentation, and it appears that fetch isn't a standard Backbone event. To get notified when an Alloy collection changes, we should be listening for the reset event, which is fired when the entire collection's contents are replaced. Try changing your code to:
hi im trying sample code
i have a problem with the fetch
this is the code
OUTPUT
in the BLOCK2 mbooks contain al models, in BLOCK1 it is emply
The text was updated successfully, but these errors were encountered: