1(function () 2{ 3 "use strict"; 4 5 $.require(['responses', 'pageController'], function (responses, pageController) 6 { 7 responses.add('CartPaymentSuccessful', new CartPaymentSuccessful()); 8 responses.add('CartPaymentPending', new CartPaymentPending()); 9 responses.add('CartPaymentFailed', new CartPaymentFailed()); 10 11 function CartPaymentSuccessful() 12 { 13 responses.abstract.call(this); 14 15 this.process = function ($el, response, callback) 16 { 17 location.href = response.RedirectUrl; 18 callback(); 19 20 }; 21 } 22 23 function CartPaymentPending() 24 { 25 responses.abstract.call(this); 26 27 this.process = function ($el, response, callback) 28 { 29 location.href = response.RedirectUrl; 30 callback(); 31 }; 32 } 33 34 function CartPaymentFailed() 35 { 36 responses.abstract.call(this); 37 38 this.process = function ($el, response, callback) 39 { 40 console.warn('Cart.Responses.CartPaymentFailed', 'has not been implemented'); 41 callback(); 42 43 }; 44 } 45 46 47 }); 48 49 50 51})(); 52
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.