dist/version/ulib-0.1.3.js
function(name, func, pluginName) {
					if(pluginName !== undefined) {
						currentPluginName = pluginName;
					}
					var eventCurrentPluginName = currentPluginName,
						//	Create an event we can bind and register
						myEventFunc = function() {
							var pubsubCore = pubsub.getCore();
							currentPluginName = eventCurrentPluginName;
							func.apply((pubsubCore? pubsubCore(): pubsub), arguments);
						};
					//	Register the plugin events and bind using pubsub
					pluginBindings[this.pluginName] = pluginBindings[this.pluginName] || [];
					pluginBindings[this.pluginName].push({ name: name, func: myEventFunc });
					pubsub.on(name, myEventFunc);
				}
function(name, func, pluginName) {
					if(pluginName !== undefined) {
						currentPluginName = pluginName;
					}
					var eventCurrentPluginName = currentPluginName,
						//	Create an event we can bind and register
						myEventFunc = function() {
							var pubsubCore = pubsub.getCore();
							currentPluginName = eventCurrentPluginName;
							func.apply((pubsubCore? pubsubCore(): pubsub), arguments);
						};
					//	Register the plugin events and bind using pubsub
					pluginBindings[this.pluginName] = pluginBindings[this.pluginName] || [];
					pluginBindings[this.pluginName].push({ name: name, func: myEventFunc });
					pubsub.on(name, myEventFunc);
				}
function ( name , func , pluginName ) { if ( pluginName !== undefined ) { currentPluginName = pluginName ; } var eventCurrentPluginName = currentPluginName , //	Create an event we can bind and register myEventFunc = function ( ) { var pubsubCore = pubsub . getCore ( ) ; currentPluginName = eventCurrentPluginName ; func . apply ( ( pubsubCore ? pubsubCore ( ) : pubsub ) , arguments ) ; } ; //	Register the plugin events and bind using pubsub pluginBindings [ this . pluginName ] = pluginBindings [ this . pluginName ] || [ ] ; pluginBindings [ this . pluginName ] . push ( { name : name , func : myEventFunc } ) ; pubsub . on ( name , myEventFunc ) ; }
Listen to events in the events manager
Listen to events in the events manager