1(function ($) { 2 'use strict'; 3 4 var caritasCollections = function(){ 5 6 var instances = []; 7 8 function onReady() { 9 $('.module.caritas-collections').each(function () { 10 instances.push(initInstance($(this))); 11 }); 12 } 13 14 function initInstance(view) { 15 16 // Private properties 17 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 18 19 var $view = view, 20 id = $view.data('id'); 21 22 // Private methods 23 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 24 25 // instance object 26 var instance = { 27 init: function () { 28 // Remove this lines this and the next line 29 // console.log('Instance of caritas-collections initialized with id and view: ', id, view); 30 } 31 }; 32 33 instance.init(); 34 return instance; 35 } 36 37 // DOMContentLoaded 38 jQuery(onReady); 39 } 40 41 caritasCollections(); 42 43})(jQuery);
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.