Sha256: 24d70d9c3359e82bf9521d41cb90bb35504411499be582fda553732bcb05e4de
Contents?: true
Size: 599 Bytes
Versions: 34
Compression:
Stored size: 599 Bytes
Contents
/** * @namespace WORKAREA.recentViews */ WORKAREA.registerModule('recentViews', (function () { 'use strict'; var updateRecentViews = function (index, element) { var data = JSON.parse($(element).attr('content')); $.post(WORKAREA.routes.storefront.recentViewsPath(), data); }, /** * @method * @name init * @memberof WORKAREA.recentViews */ init = function ($scope) { $('meta[property="recent-view"]', $scope).each(updateRecentViews); }; return { init: init }; }()));
Version data entries
34 entries across 34 versions & 1 rubygems