Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 265x 265x 805x 26x 805x 805x | 'use strict'; define(['jquery', 'underscore', 'pim/fetcher-registry'], function ($, _, FetcherRegistry) { return { getProductGroups: function (product) { var promises = _.map(product.groups, function (groupCode) { return FetcherRegistry.getFetcher('group').fetch(groupCode); }); return $.when.apply($, promises).then(function () { return _.toArray(arguments); }); } }; }); |