Storehouse.js 1.0

Provides methods to dispose an array of elements from the DOM and inject them back to their original positions



Details

Author
Ryan Florence
Current version
1.0
GitHub
rpflorence/Storehouse
Downloads
2090
Category
Utilities
Tags
Report
GitHub Issues

Releases


Dependencies

  • core/1.2.4:
    • Class
    • Element

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');

Use Cases

  • 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.

Discuss

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