rem: for (var i = 0; i < bl.length; ++i) { 
add: for (var i in bl) { 
context: function HtmlTidy(editor) {	this.editor = editor;	var cfg = editor.config;	var tt = HtmlTidy.I18N;	var bl = HtmlTidy.btnList;	var self = this;	this.onMode = this.__onMode;	// register the toolbar buttons provided by this plugin	var toolbar = [];	for (var i = 0; i < bl.length; ++i) {		var btn = bl[i];		if (btn == "html-tidy") {			var id = "HT-html-tidy";			cfg.registerButton(id, tt[id], editor.imgURL(btn[0] + ".gif", "HtmlTidy"), true,					   function(editor, id) {						   // dispatch button press event						   self.buttonPress(editor, id);					   }, btn[1]);			toolbar.push(id);		} else if (btn == "html-auto-tidy") {			var ht_class = {				id	: "HT-auto-tidy",				options	: { "Auto-Tidy" : "auto", "Don't Tidy" : "noauto" },				action	: function (editor) { self.__onSelect(editor, this); },				refresh	: function (editor) { },				context	: "body"			};			cfg.registerDropdown(ht_class);		}	}	for (var i in toolbar) {		cfg.toolbar[0].push(toolbar[i]);	}};
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/4d968a51f578e3361a382d6fa8372e519c47ba55/html-tidy.js/buggy/phpgwapi/js/htmlarea/plugins/HtmlTidy/html-tidy.js