1$(function(){ 2 $.nativeCall = function(action,params){ 3 if(typeof params == 'undefined'){ 4 params = []; 5 } 6 var dfd = $.Deferred(); 7 nativeBridge.exec( 8 function(w){ 9 var result; 10 try{ 11 result = JSON.parse(w); 12 13 console.log("nativeBridge=>success"); 14 }catch(e){ 15 console.log("nativeBridge=>success=>parseJSON failed"); 16 result = w; 17 } 18 19 dfd.resolve(result); 20 }, 21 function(e){ 22 dfd.reject(e); 23 }, 24 action, 25 params 26 ); 27 return dfd.promise(); 28 } 29 30});
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.