context: proto._buildEventListener = function(widget, args, text) {		if (isInvalidString(args.type)) {		throw this._newBuildError('eventListener requires a string type attribute');	};	var self = this;		// are we delegating ?		if (isValidString(args.delegate)) {		// remember the build context to be able to display it after built time		var dc = this._formatDebugContext();			if (args.delegate.indexOf('.') > -1) {			// delegation to a global method			var p = args.delegate.split('.');			var o = p[0];			var m = p[1];			widget.addEventListener(args.type, function(e) {					if (!window[o]) {						throw self._newError(dc, 'delegate not found', {delegate:args.delegate});					};						if (!window[o][m]) {						throw self._newError(dc, 'delegate not found', {delegate:args.delegate});					};										window[o][m].apply(window[o], [e]);			});		}		else {			// delegation to a global method			widget.addEventListener(args.type, function(e) {				if (!window[args.delegate]) {					throw self._newError(dc, 'delegate not found', {delegate:args.delegate});				};								window[args.delegate].apply(null, [e]);			});		};	}	else {			// build a function object using text as the function body		//		// the args attribute indicates the name of the event argument		// if not provided - use 'event' as the name		if (!args.args) {			args.args = "event";		};				var f = new Function(args.args, text);		widget.addEventListener(args.type, f);	};};
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/917d969301f80998e6ec94b4f504c3cbada764a6/QxBuilder.js/clean/qooxdoo/source/script/core/QxBuilder.js