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
// use exisiting ID or generate a new oneif($el.attr('id')){id=$el.attr('id');}else{if(data.id){id=data.id;}else{id='scrollStory_story_'+index;}$el.attr('id',id);}
The text was updated successfully, but these errors were encountered:
I should probably also check that ID is a string and a valid DOM ID string, as its possible that an external data source could have an id column that ends up being passed in, unaware of DOM ID restrictions.
I'd also need to make sure the ID was unique, which is, I believe, the reason I didn't add this feature originally.
_prepItem generates a domID, even if you pass in an id via the content array
_prepItem should probably be something like this:
The text was updated successfully, but these errors were encountered: