1saffire.angular.app.factory('saffire.angular.cart.cartItemService', ['$rootScope', 'saffire.angular.webPoster', function ($rootScope, webPoster) { 2 3 var addCartItem = function (postData) { 4 5 postData.includeCartInResponse = true; 6 7 if (!postData.inCheckout) { 8 postData.includeCartInResponse = false; 9 } 10 11 var endpointURL = '{0}api/cart/addItem'.format($rootScope.siteBaseURL); 12 13 return webPoster.postWebRequest(endpointURL, postData); 14 } 15 16 return ({ 17 addCartItem: addCartItem 18 }) 19}])
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.