1(function (publics) { 2 "use strict"; 3 var privates = {}; 4 5 publics.async = function () { 6 var args = privates.argsToArray(arguments); 7 args.unshift(0); 8 return publics.asyncDelay.apply(this, args); 9 } 10 11 publics.asyncDelay = function () { 12 var deferred = new $.Deferred(); 13 var args = privates.argsToArray(arguments); 14 15 setTimeout(function (deferred, args) { 16 var restArgs = args.slice(2); 17 restArgs.unshift(deferred); 18 args[1].apply(this, restArgs); 19 }, args[0], deferred, args); 20 return deferred.promise(); 21 } 22 23 privates.argsToArray = function(args) 24 { 25 var arrayArgs = []; 26 for (var i = 0; i < args.length; i++) { 27 arrayArgs.push(args[i]); 28 } 29 return arrayArgs; 30 } 31 32}(AsyncHelper = {}));
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.