
	if ( $.pubsub ){
		$.error( 'pubsub is already defined on jQuery, skipping integration of PubSubJS' );
		return false;
	}

	function pubsub( method ){
		if ( PubSub.hasOwnProperty( method ) && typeof PubSub[ method ] === 'function' ){
			return PubSub[ method ].apply( self, Array.prototype.slice.call( arguments, 1 ) );
		} else {
			$.error( 'Method ' +  method + ' does not exist on jQuery.pubsub' );
		}
	}

	// export into jQuery
	$.pubsub = pubsub;
}(jQuery));
