1// ----- Add To Cart View Model ----- 2function AddToCartViewModel(rootElement) { 3 var self = this; 4 self.rootElement = rootElement; 5 6 self.showQuantity = ko.observable(false); 7 self.showButton = ko.observable(false); 8 self.deliveryUnit = ko.observable(); 9 self.loading = ko.observable(false); 10 self.addSuccess = ko.observable(false); 11 12 self.switchInfo = function (data) { 13 if (data) { 14 self = this; 15 self.showQuantity(!data.isEndOfLife && data.isOrderable && data.isOutOfLicense && !data.isPersonalProductList && !data.hasHardSteeringProduct); 16 self.deliveryUnit(data.deliveryUnit); 17 self.showButton(!data.isEndOfLife && data.isOrderable && data.isOutOfLicense && !data.isPersonalProductList && !data.hasHardSteeringProduct); 18 } 19 }; 20}
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.