1/** 2 * @author Nevma, [email protected] 3 * @license http://www.gnu.org/licenses/gpl-3.0.en.html GPLv3 4 */ 5Responsiville.Events={};Responsiville.Events.registerEvent=function(eventName){if(typeof this.events==='undefined'){this.events={}} 6if(typeof this.events[eventName]==='undefined'){this.events[eventName]=[]}};Responsiville.Events.deregisterEvent=function(eventName){if(typeof this.events!=='undefined'){delete this.events[eventName]}};Responsiville.Events.on=function(eventName,callback){this.registerEvent(eventName);this.events[eventName].push(callback)};Responsiville.Events.off=function(eventName,callback){var index=this.events[eventName].indexOf(callback);this.events[eventName].splice(index,1)};Responsiville.Events.fireEvent=function(eventName,args){if(typeof this.events==='undefined'){return} 7for(var k in this.events[eventName]){this.events[eventName][k].apply(this,args)}};Responsiville.Events.getBoundFunction=function(theFunction){if(typeof this.boundFunctions==='undefined'){this.boundFunctions=[];this.originalFunctions=[]} 8var index=jQuery.inArray(theFunction,this.originalFunctions);if(index>-1){return this.boundFunctions[index]} 9var theFunctionBound=theFunction.bind(this);this.boundFunctions.push(theFunctionBound);this.originalFunctions.push(theFunction);return theFunctionBound} 10;
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.