rem: Recorder.addEventHandler('clickLocator', 'click', function(event) { if (event.button == 0) { var clickable = this.findClickableElement(event.target); if (clickable) { this.clickLocator = this.findLocators(event.target); 
add: Recorder.addEventHandler('select', 'change', function(event) { var tagName = event.target.tagName.toLowerCase(); if ('select' == tagName) { if (!event.target.multiple) { var option = event.target.options[event.target.selectedIndex]; this.log.debug('selectedIndex=' + event.target.selectedIndex); this.record("select", this.findLocators(event.target), this.getOptionLocator(option)); } else { this.log.debug('change selection on select-multiple'); var options = event.target.options; for (var i = 0; i < options.length; i++) { this.log.debug('option=' + i + ', ' + options[i].selected); if (options[i]._wasSelected == null) { this.log.warn('_wasSelected was not recorded'); } if (options[i]._wasSelected != options[i].selected) { var value = this.getOptionLocator(options[i]); if (options[i].selected) { this.record("addSelection", this.findLocators(event.target), value); } else { this.record("removeSelection", this.findLocators(event.target), value); } options[i]._wasSelected = options[i].selected; } } 
context: Recorder.addEventHandler('clickLocator', 'click', function(event) {		if (event.button == 0) {			var clickable = this.findClickableElement(event.target);			if (clickable) {				this.clickLocator = this.findLocators(event.target);			}		}	}, { capture: true });
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3428/48a39914f9ae277dd86c2a30b4fba104f24b8752/recorder-handlers.js/clean/src/content/recorder-handlers.js