This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Task { | |
... | |
render() { | |
this.element = document.createElement('li'); | |
... | |
this.deleteButton = document.createElement('button'); | |
this.deleteButton.onclick = this.destroy.bind(this); | |
this.element.append(this.deleteButton); | |
return this.element; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Task { | |
constructor(title, onDestroy) { | |
this.title = title; | |
this.isDone = false; | |
this.onDestroy = onDestroy || function () {}; | |
} | |
render() { | |
this.element = document.createElement('li'); | |
this.element.innerText = this.title; | |
this.element.className = this.isDone && 'done'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Task { | |
constructor(title) { | |
this.title = title; | |
this.isDone = false; | |
} | |
render() { | |
this.element = document.createElement('li'); | |
this.element.innerText = this.title; | |
this.element.className = this.isDone && 'done'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; Sublime Text 3 "Open With" context menu | |
; The "Icon" is optional | |
; Open files | |
[HKEY_CLASSES_ROOT\*\shell\Open with ST3] | |
@="Open with ST3" | |
"Icon"="C:\\Program Files\\Sublime Text 3\\sublime_text.exe,0" | |
[HKEY_CLASSES_ROOT\*\shell\Open with ST3\command] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; Sublime Text 2 "Open With" context menu | |
; The "Icon" is optional | |
; Open files | |
[HKEY_CLASSES_ROOT\*\shell\Open with ST2] | |
@="Open with ST2" | |
"Icon"="C:\\Program Files\\Sublime Text 2\\sublime_text.exe,0" | |
[HKEY_CLASSES_ROOT\*\shell\Open with ST2\command] |