%PDF- %PDF-
Direktori : /proc/985914/root/data/old/home/stash/atlassian-stash/static/util/ |
Current File : //proc/985914/root/data/old/home/stash/atlassian-stash/static/util/events-min.js |
define("util/events",["backbone-raw","util/events/internal"],function(C,B){var A={trigger:function(D,E){return B.apply(this,arguments)},on:function(D,E){return B.on(D,E)},off:function(D,E){return B.off(D,E)},once:function(D,E){return B.once(D,E)},listeners:function(D){return B.listeners(D)},stop:function(){return B.stop()},name:function(D){return B.nt(D)},createEventMixin:function(E,D){D=D||{};return _.extend({},C.Events,{trigger:function(G){var F=C.Events.trigger.apply(this,arguments);if(!D.localOnly){A.trigger.apply(A,[E+"/"+G,this].concat(Array.prototype.slice.call(arguments,1)))}return F}})},chain:function(){return this.chainWith(this)},chainWith:function(E){var D=[];return{on:function(F,H){var G=arguments;E.on.apply(E,G);D.push(function(){E.off.apply(E,G)});return this},destroy:function(){for(var F=0;F<D.length;F++){D[F]()}D=[]}}}};return A});