Sha256: fe2b194658c8f2639d36d472615d45d6534ccab733a5b23662491389188f77bb
Contents?: true
Size: 769 Bytes
Versions: 62
Compression:
Stored size: 769 Bytes
Contents
// TODO v4 rewrite to not assign directly to currentUser. Use closure instead. /** * @namespace WORKAREA.currentUser */ WORKAREA.registerModule('currentUser', (function () { 'use strict'; var refresh = function() { return $.getJSON( WORKAREA.routes.storefront.currentUserPath({ format: 'json' }), function (result) { _.assign(WORKAREA.currentUser, result); } ); }; /** * @method * @name gettingUserData * @memberof WORKAREA.currentUser */ return { refresh: refresh, gettingUserData: $.getJSON( WORKAREA.routes.storefront.currentUserPath({ format: 'json' }), function (result) { _.assign(WORKAREA.currentUser, result); } ) }; }()));
Version data entries
62 entries across 62 versions & 1 rubygems