Sha256: 646d03559784fff73e568ff4edd8f01560a350383baaefa128952bdb5c054339
Contents?: true
Size: 961 Bytes
Versions: 62
Compression:
Stored size: 961 Bytes
Contents
/** * @namespace WORKAREA.logOutLinkPlaceholders */ WORKAREA.registerModule('logOutLinkPlaceholders', (function () { 'use strict'; var logOutLinkTemplate = JST['workarea/storefront/templates/log_out_link'], injectLogOutLink = function (index, element) { $(element).replaceWith(logOutLinkTemplate()); }, testPlaceholders = function ($scope) { $('[data-log-out-link-placeholder]', $scope).each(injectLogOutLink); }, testCurrentUser = function ($scope, currentUser) { if (!currentUser.logged_in) { return; } testPlaceholders($scope); }, /** * @method * @name init * @memberof WORKAREA.logOutLinkPlaceholders */ init = function ($scope) { WORKAREA.currentUser.gettingUserData .done(_.partial(testCurrentUser, $scope)); }; return { init: init }; }()));
Version data entries
62 entries across 62 versions & 1 rubygems