code cosmetics: remove redundant comments
This commit is contained in:
		
							parent
							
								
									5a9227ce8c
								
							
						
					
					
						commit
						9f4066faa1
					
				|  | @ -9,7 +9,6 @@ function createSourceEditor(style) { | ||||||
|   // a flag for isTouched()
 |   // a flag for isTouched()
 | ||||||
|   let hadBeenSaved = false; |   let hadBeenSaved = false; | ||||||
| 
 | 
 | ||||||
|   // draw HTML
 |  | ||||||
|   $('#sections').textContent = ''; |   $('#sections').textContent = ''; | ||||||
|   $('#name').disabled = true; |   $('#name').disabled = true; | ||||||
|   $('#mozilla-format-heading').parentNode.remove(); |   $('#mozilla-format-heading').parentNode.remove(); | ||||||
|  | @ -27,7 +26,6 @@ function createSourceEditor(style) { | ||||||
| 
 | 
 | ||||||
|   setupOptionsExpand(); |   setupOptionsExpand(); | ||||||
| 
 | 
 | ||||||
|   // dirty reporter
 |  | ||||||
|   const dirty = dirtyReporter(); |   const dirty = dirtyReporter(); | ||||||
|   dirty.onChange(() => { |   dirty.onChange(() => { | ||||||
|     const DIRTY = dirty.isDirty(); |     const DIRTY = dirty.isDirty(); | ||||||
|  | @ -44,24 +42,18 @@ function createSourceEditor(style) { | ||||||
|     style = deepCopy(style); |     style = deepCopy(style); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   // draw CodeMirror
 |  | ||||||
|   const cm = CodeMirror.fromTextArea($('#sections textarea')); |   const cm = CodeMirror.fromTextArea($('#sections textarea')); | ||||||
|   cm.startOperation(); |   cm.startOperation(); | ||||||
|   cm.setValue(style.sourceCode); |   cm.setValue(style.sourceCode); | ||||||
|   cm.clearHistory(); |   cm.clearHistory(); | ||||||
|   cm.markClean(); |   cm.markClean(); | ||||||
| 
 |  | ||||||
|   // too many functions depend on this global
 |  | ||||||
|   editors.push(cm); |   editors.push(cm); | ||||||
| 
 |  | ||||||
|   // draw metas info
 |  | ||||||
|   updateMeta(); |   updateMeta(); | ||||||
|   cm.endOperation(); |   cm.endOperation(); | ||||||
| 
 | 
 | ||||||
|   initHooks(); |   initHooks(); | ||||||
|   initAppliesToLineWidget(); |   initAppliesToLineWidget(); | ||||||
| 
 | 
 | ||||||
|   // setup linter
 |  | ||||||
|   initLint(); |   initLint(); | ||||||
|   initLinterSwitch(); |   initLinterSwitch(); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user