kopia lustrzana https://github.com/miklobit/TiddlyWiki5
				
				
				
			Logging widgets :Fixed issue on Firefox where logging does not work (#5223)
* Fixed issue on Firefox where logging does not work properly due to column names * Remove second argument to utils.logTablebrowser-messaging-saver
							rodzic
							
								
									2c76cfa67a
								
							
						
					
					
						commit
						ce5d20b8fc
					
				|  | @ -56,9 +56,9 @@ exports.warning = function(text) { | |||
| /* | ||||
| Log a table of name: value pairs | ||||
| */ | ||||
| exports.logTable = function(data,columnNames) { | ||||
| exports.logTable = function(data) { | ||||
| 	if(console.table) { | ||||
| 		console.table(data,columnNames); | ||||
| 		console.table(data); | ||||
| 	} else { | ||||
| 		$tw.utils.each(data,function(value,name) { | ||||
| 			console.log(name + ": " + value); | ||||
|  |  | |||
|  | @ -78,11 +78,11 @@ LogWidget.prototype.log = function() { | |||
| 
 | ||||
| 	console.group(this.message); | ||||
| 	if(dataCount > 0) { | ||||
| 		$tw.utils.logTable(data,["name","value"]); | ||||
| 		$tw.utils.logTable(data); | ||||
| 	} | ||||
| 	if(this.logAll || !dataCount) { | ||||
| 		console.groupCollapsed("All variables"); | ||||
| 		$tw.utils.logTable(allVars,["name","value"]); | ||||
| 		$tw.utils.logTable(allVars); | ||||
| 		console.groupEnd(); | ||||
| 	} | ||||
| 	console.groupEnd(); | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Saq Imtiaz
						Saq Imtiaz