Provides methods to dispose an array of elements from the DOM and inject them back to their original positions
How to use
var myStorehouse = new Storehouse(); myStorehouse.store('apples', 'div.apple'); // access for manipulation or whatever console.log(myStorehouse.apples); // later myStorehouse.inject('apples');
- Pulling elements out of the DOM to do some heavy manipulation so the browser doesn't have to render things as you manipulate
- Scripts that rely on getNext or getPrevious can find the correct element if you want to hide some, rather than messing around w/ extra logic to get the correct element when it's immediate neighbors are hidden.
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.blog comments powered by Disqus