Skip to content

Commit 17b8994

Browse files
committed
Add todos to JS
1 parent 885c035 commit 17b8994

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

srcjs/input.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ export function reactInput(selector,
7272
this.render(el);
7373
}
7474
unsubscribe(el, callback) {
75-
// TODO
75+
// TODO at a minimum, 'undo' subscribe() actions (remove callback from data)
76+
// Figure out the right way to un-render the component
7677
}
7778
receiveMessage(el, data) {
7879
options.receiveMessage.call(this, el, data);
@@ -83,6 +84,8 @@ export function reactInput(selector,
8384
* through `this` in receiveMessage
8485
* */
8586

87+
// TODO Initialize value and config in initialize() method, don't sync back
88+
// to DOM
8689
getInputValue(el) {
8790
return JSON.parse($(el).next().text());
8891
}

0 commit comments

Comments
 (0)