dailymotion/vast-client-js — pull request #5 by rhumlover (2013-06-28 10:30:17+00:00)
Title: Implement persistent storage for capping through localStorage

- Create VASTUtil.storage: binds to localStorage or sessionStorage if available, fallback to a very simple polyfill (only save in current session, in a basic JavaScript object)

- Use storage to save totalCalls, totalCallsTimeout, lastSuccessfullAd

- lastSuccessfullAd is set when 'start' event is triggered