diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-10-27 13:55:21 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-10-27 13:55:58 +0000 |
| commit | e27262bdbbf2167ff0b5a9e147c04c8333c02515 (patch) | |
| tree | 7674abd298f7432c0205f815b90fc767a89cf2b1 | |
| parent | reoder main page (diff) | |
| download | mmm-e27262bdbbf2167ff0b5a9e147c04c8333c02515.tar.gz mmm-e27262bdbbf2167ff0b5a9e147c04c8333c02515.zip | |
default to main content
| -rw-r--r-- | app/mmmfs/browser.moon | 4 | ||||
| -rw-r--r-- | app/mmmfs/tree.moon | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/mmmfs/browser.moon b/app/mmmfs/browser.moon index de5bc7f..50da38b 100644 --- a/app/mmmfs/browser.moon +++ b/app/mmmfs/browser.moon @@ -7,7 +7,7 @@ class Browser new: (@root) => @path = ReactiveVar {} @path\subscribe (path) -> window.location.hash = '/' .. table.concat path, '/' - @prop = ReactiveVar next @root.props + @prop = ReactiveVar (@root\find 'mmm/dom') or next @root.props @active = @path\map (path) -> fileder = @root for name in *path @@ -24,7 +24,7 @@ class Browser fileder - @active\subscribe (fileder) -> @prop\set next fileder.props + @active\subscribe (fileder) -> @prop\set (fileder\find 'mmm/dom') or next fileder.props @tree = div { style: { diff --git a/app/mmmfs/tree.moon b/app/mmmfs/tree.moon index daa7dd4..f1e988b 100644 --- a/app/mmmfs/tree.moon +++ b/app/mmmfs/tree.moon @@ -211,7 +211,7 @@ If you are reading this in the source, then c'mon, just scroll past and give me Fileder { 'name: alpha': 'empty', - 'title: text/plain': "Hey I'm an ad-hoc child with no content for shit", + 'title: text/plain': "Hey I'm an ad-hoc child with no content at all", } Fileder { |
