Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upcacheElements with queryAll #107
Comments
bear
added
the
question
label
Mar 6, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
cdaringe
Apr 6, 2015
Member
hey @vwasteels, per the source there is not. Because of the ambiguity & uncertainty of the returned elements, &-js would not know how you would like those cached. I.e. how would your elements get stored onto obj? this.titleSocial1?, this.title_social_el_0?, etc etc. I'd recommend that you add a sugar function to do the query, and index on key definitions as you see fit.
Let me know if that was unclear! If you have an idea about a standard way to do it that could be beneficial, please share.
|
hey @vwasteels, per the source there is not. Because of the ambiguity & uncertainty of the returned elements, &-js would not know how you would like those cached. I.e. how would your elements get stored onto obj? Let me know if that was unclear! If you have an idea about a standard way to do it that could be beneficial, please share. |
vwasteels commentedMar 6, 2015
Is there a way to use
this.cacheElements()to cache a set of elements ?for now I have to do it manually :
and i'd like to do it that way :
but in this case,
this.socialContentsElreturns the first element only