Add YAF ModelList to Mojito #288

Closed
trungpham opened this Issue Jul 19, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@trungpham

Introduce YUI ModelList to Mojito.

If the model list has already been populated from the server side by calling the load() function, then we need to serialize the list and pass it over to the browser. This way the browser will not need to reload the model list again.

Also, add a class method to reference the model list.

/**
@param {String} id where id is an identifier pointing to the modelList instance.
@returns {ModelList}
/*
ModelList.get = function(id){

}

Note. This is not the same as the instance method get(id) where it returns an instance of the Model.

@caridy

This comment has been minimized.

Show comment
Hide comment
@caridy

caridy May 17, 2013

Collaborator

This is going to be addressed in 0.6 thru express-state. I will keep this around for reference. In the current mojito, only stuff set thru ac.pageData.set() and ac.data.set() will be serialized and rehydrated in the client side.

Collaborator

caridy commented May 17, 2013

This is going to be addressed in 0.6 thru express-state. I will keep this around for reference. In the current mojito, only stuff set thru ac.pageData.set() and ac.data.set() will be serialized and rehydrated in the client side.

@caridy

This comment has been minimized.

Show comment
Hide comment
@caridy

caridy Mar 3, 2014

Collaborator

this is done.

Collaborator

caridy commented Mar 3, 2014

this is done.

@caridy caridy closed this Mar 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment