lib/kissy/5.0.0-alpha.3/lib/build/event/custom.js
function (type, create) {
            var self = this, customEvent, customEventObservables = self.getCustomEvents();
            customEvent = customEventObservables && customEventObservables[type];
            if (!customEvent && create) {
                customEvent = customEventObservables[type] = new CustomEventObservable({
                    currentTarget: self,
                    type: type
                });
            }
            return customEvent;
        }
function (type, create) {
            var self = this, customEvent, customEventObservables = self.getCustomEvents();
            customEvent = customEventObservables && customEventObservables[type];
            if (!customEvent && create) {
                customEvent = customEventObservables[type] = new CustomEventObservable({
                    currentTarget: self,
                    type: type
                });
            }
            return customEvent;
        }
function ( type , create ) { var self = this , customEvent , customEventObservables = self . getCustomEvents ( ) ; customEvent = customEventObservables && customEventObservables [ type ] ; if ( ! customEvent && create ) { customEvent = customEventObservables [ type ] = new CustomEventObservable ( { currentTarget : self , type : type } ) ; } return customEvent ; }
Get custom event for specified event
@private
@param {String} type event type
@param {Boolean} [create] whether create custom event on fly
@return {KISSY.Event.CustomEvent.CustomEventObservable}
Get custom event for specified event