UNPKG

vue-carousel-3d

Version:

Beautiful, flexible and touch supported 3D Carousel for Vue.js

13 lines (9 loc) 228 B
'use strict'; module.exports = ctx => { const cache = {}; return function fragmentCache(id, fn) { if (this.cache && cache[id] != null) return cache[id]; const result = cache[id] = fn(); return result; }; };