1var __app__helpDecorator = function () { 2 this.edit = {}; 3 this.view = {}; 4 __app__helpEditDecorator.call(this.edit); 5 __app__helpViewDecorator.call(this.view); 6 7 this.decorate = function (options) { 8 if (!options) { 9 options = {}; 10 } 11 12 var me = this; 13 this.edit.decorate(options.editItems, options.editLinkMask, function () { 14 me.helpViewRefresh(options.helpsLink, options.viewMainRenderer, options.viewSpecRenderers); 15 }); 16 this.helpViewRefresh(options.helps ? options.helps : options.helpsLink, options.viewMainRenderer, options.viewSpecRenderers); 17 }; 18 19 this.helpViewRefresh = function (helps, mainRenderer, specRenderers) { 20 var me = this; 21 if (Array.isArray(helps)) { 22 this.view.decorate(helps, mainRenderer, specRenderers); 23 } else if (typeof helps === 'string') { 24 $.post(helps, [], function (helps) { 25 me.view.decorate(helps, mainRenderer, specRenderers); 26 }); 27 } else { 28 console.error('Option "helps" must be either array of objects or string with URL'); 29 } 30 }; 31}
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.