1//################################################################ 2//#### Autoload 3//################################################################ 4// 5// ACC.sample={ 6// _autoload: [ 7// "samplefunction", 8// ["somefunction", "some expression to test"] 9// ["somefunction","some expression to test","elsefunction"] 10// ], 11 12// samplefunction:function(){ 13// //... do some suff here, executed every time ... 14// }, 15 16// somefunction:function(){ 17// //... do some suff here. if expression match ... 18// }, 19 20// elsefunction:function(){ 21// //... do some suff here. if expression NOT match ... 22// } 23 24// } 25 26// // sample expression: $(".js-storefinder-map").length != 0 27 28 29function _autoload(){ 30 $.each(ACC,function(section,obj){ 31 if($.isArray(obj._autoload)){ 32 $.each(obj._autoload,function(key,value){ 33 if($.isArray(value)){ 34 if(value[1]){ 35 ACC[section][value[0]](); 36 }else{ 37 if(value[2]){ 38 ACC[section][value[2]]() 39 } 40 } 41 }else{ 42 ACC[section][value](); 43 } 44 }) 45 } 46 }) 47} 48 49$(function(){ 50 _autoload(); 51});
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.