1class NBProductWholesale extends NBModel{ 2 3 constructor(){ 4 super(); 5 this.urlAdd = nb_cart_page_url; 6 } 7 8 validateFormLoad = function (params){ 9 10 if(typeof params.block === "undefined"){ 11 throw new Error("Error, parameter validation was not performed."); 12 } 13 14 if(typeof params.allLib === "undefined"){ 15 throw new Error("Error, parameter validation was not performed."); 16 } 17 }; 18 19 formatLoad = function(params){ 20 21 var data = { 22 block : params.block, 23 allLib : params.allLib 24 } 25 26 return data; 27 }; 28 29 validateFormAdd = function (params){ 30 31 if(typeof params.productsArray === "undefined"){ 32 throw new Error("Error, parameter validation was not performed."); 33 } 34 }; 35 36 formatAdd = function(params){ 37 38 var data = { 39 flag: 'yes', 40 ajax: 'yes', 41 task: 'cartInsertOutfit', 42 dataForProducts: params.productsArray, 43 dataProductComment: "" 44 } 45 46 return data; 47 }; 48}
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.