Make the setInterval call conditional based on whether any elements are actually listening to for the ‘invew’ event. Clear the interval if all elements are removed.
Merge pull request #20 from montanajob/setinterval-asneeded

As Needed setInterval